語言

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);

適用於