IpcClientChannel.ChannelPriority 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
獲得當前頻道的優先權。
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}.", clientChannel->ChannelPriority );
// Show the priority of the channel.
Console.WriteLine("The priority of the channel is {0}.",
clientChannel.ChannelPriority);
備註
優先權控制競爭用戶端連接特定端點的順序;較高優先權的頻道會先連接,優先權較低的頻道先連接。 預設優先順序為 1;負面優先權是被允許的。