IpcClientChannel.ChannelPriority プロパティ

定義

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

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

プロパティ値

Int32

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

実装

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

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

注釈

優先度は、競合するクライアントが特定のエンドポイントに接続する順序を制御します。優先順位の高いチャネルは、優先順位の低いチャネルの前に接続します。 既定の優先度は 1 です。負の優先順位を使用できます。

適用対象