IpcServerChannel.ChannelPriority プロパティ

定義

現在のチャネルの優先順位を取得します。

public:
 property int ChannelPriority { int get(); };
public int ChannelPriority { get; }
member this.ChannelPriority : int
Public ReadOnly Property ChannelPriority As Integer

プロパティ値

チャネルに割り当てられている優先順位を示す整数。

実装

次のコード例は、ChannelPriority プロパティの使用方法を示しています。

// Show the priority of the channel.
Console::WriteLine( L"The priority of the channel is {0}.",serverChannel->ChannelPriority );
// Show the priority of the channel.
Console.WriteLine("The priority of the channel is {0}.",
    serverChannel.ChannelPriority);

注釈

優先度は、チャネル データがインスタンスに表示される順序を ObjRef 制御します。優先順位の高いチャネルは、優先順位の低いチャネルの前に表示されます。 クライアントは、インスタンスに一覧表示されている順序でサーバー チャネルに ObjRef 接続しようとします。 既定の優先度は 20 です。負の優先順位を使用できます。

適用対象