IpcServerChannel.ChannelPriority 屬性

定義

取得目前通道的優先權。

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}.",serverChannel->ChannelPriority );
// Show the priority of the channel.
Console.WriteLine("The priority of the channel is {0}.",
    serverChannel.ChannelPriority);

備註

優先順序會控制通道資料出現在實例中 ObjRef 的順序;優先順序較高的通道會出現在優先順序較低的通道之前。 用戶端會嘗試依實例中列出的 ObjRef 順序連線到伺服器通道。 預設優先順序為 20;允許負優先順序。

適用於