Muokkaa

Jaa


IpcClientChannel.ChannelPriority Property

Definition

Gets the priority of the current channel.

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

Property Value

An integer that indicates the priority assigned to the channel.

Implements

Examples

The following code example shows how to use the ChannelPriority property.

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

Remarks

The priority controls the order in which competing clients connect to a given endpoint; higher priority channels connect before lower priority channels. The default priority is 1; negative priorities are allowed.

Applies to