共用方式為


TcpChannel.ChannelPriority 屬性

定義

取得目前通道的優先權。

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

屬性值

整數,表示指派給通道的優先權。

實作

範例

下列程式代碼範例示範如何使用這個屬性。

// Show the priority of the channel.
Console::WriteLine("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);

適用於