TcpClientChannel.ChannelName Propriété

Définition

Obtient le nom du canal en cours.

public:
 property System::String ^ ChannelName { System::String ^ get(); };
public string ChannelName { get; }
member this.ChannelName : string
Public ReadOnly Property ChannelName As String

Valeur de propriété

Instance de String contenant le nom du canal.

Implémente

Exemples

L’exemple de code suivant montre l’utilisation de cette propriété.

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

Remarques

Chaque canal inscrit a un nom unique. Le nom est utilisé pour récupérer un canal spécifique lors de l’appel GetChannelde .

S’applique à