Share via


TcpClientChannel.ChannelPriority プロパティ

定義

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

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

プロパティ値

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

実装

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

// Show the name and priority of the channel.
Console::WriteLine( "Channel Name: {0}", clientChannel->ChannelName );
Console::WriteLine( "Channel Priority: {0}", clientChannel->ChannelPriority );
// Show the name and priority of the channel.
Console.WriteLine("Channel Name: {0}", clientChannel.ChannelName);
Console.WriteLine("Channel Priority: {0}", clientChannel.ChannelPriority);

注釈

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

適用対象