Rediger

Del via


TcpServerChannel.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 represents the priority assigned to the channel.

Implements

Examples

The following code example shows the use of this property.

// Show the name and priority of the channel.
Console::WriteLine( "Channel Name: {0}", serverChannel->ChannelName );
Console::WriteLine( "Channel Priority: {0}", serverChannel->ChannelPriority );
// Show the name and priority of the channel.
Console.WriteLine("Channel Name: {0}", serverChannel.ChannelName);
Console.WriteLine("Channel Priority: {0}", serverChannel.ChannelPriority);

Remarks

The priority controls the order in which channel data appears in a ObjRef instance; higher priority channels appear before lower priority channels. Clients try to connect to the server channels in the order that they are listed in the ObjRef instance. The default priority is 1; negative priorities are allowed.

Applies to