IpcClientChannel.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 indica a prioridade atribuída ao canal.An integer that indicates the priority assigned to the channel.
Implementações
Exemplos
O exemplo de código a seguir mostra como usar a ChannelPriority propriedade.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);
Comentários
A prioridade controla a ordem na qual os clientes concorrentes se conectam a um determinado ponto de extremidade; canais de prioridade mais alta se conectam antes de canais de prioridade mais baixa.The priority controls the order in which competing clients connect to a given endpoint; higher priority channels connect before lower priority channels. A prioridade padrão é 1; são permitidas prioridades negativas.The default priority is 1; negative priorities are allowed.