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

适用于