IpcChannel.ChannelPriority 屬性

定義

取得目前通道的優先權。

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

屬性值

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

實作

範例

下列程式碼範例示範如何使用 ChannelPriority 屬性。 此程式碼範例是提供給 類別之較大範例的 IpcChannel 一部分。

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

備註

預設優先順序為 20。

適用於