TcpClientChannel.ChannelName Proprietà

Definizione

Ottiene il nome del canale corrente.

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

Valore della proprietà

Istanza String che contiene il nome del canale.

Implementazioni

Esempio

Nell'esempio di codice seguente viene illustrato l'uso di questa proprietà.

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

Commenti

Ogni canale registrato ha un nome univoco. Il nome viene usato per recuperare un canale specifico quando si chiama GetChannel.

Si applica a