IpcClientChannel.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 riportato di seguito viene illustrato come utilizzare la proprietà ChannelName.

// Show the name of the channel.
Console::WriteLine( L"The name of the channel is {0}.", clientChannel->ChannelName );
// Show the name of the channel.
Console.WriteLine("The name of the channel is {0}.",
    clientChannel.ChannelName);

Commenti

Ogni canale registrato ha un nome univoco. Il nome viene usato per recuperare un canale specifico quando si chiama il ChannelServices.GetChannel metodo. Il nome predefinito è "ipc client".

Si applica a