TcpServerChannel.ChannelPriority Propriedade
Definição
Obtém a prioridade do canal atual.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
Valor da propriedade
Um inteiro que representa a prioridade atribuída ao canal.An integer that represents the priority assigned to the channel.
Implementações
Exemplos
O exemplo de código a seguir mostra o uso dessa propriedade.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);
Comentários
A prioridade controla a ordem na qual os dados de canal aparecem em uma ObjRef instância; canais de prioridade mais alta aparecem antes dos canais de prioridade mais baixa.The priority controls the order in which channel data appears in a ObjRef instance; higher priority channels appear before lower priority channels. Os clientes tentam se conectar aos canais de servidor na ordem em que estão listados na ObjRef instância.Clients try to connect to the server channels in the order that they are listed in the ObjRef instance. A prioridade padrão é 1; são permitidas prioridades negativas.The default priority is 1; negative priorities are allowed.