IpcClientChannel.ChannelName Property

Definition

Gets the name of the current channel.

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

Property Value

A String instance that contains the name of the channel.

Implements

Examples

The following code example shows how to use the ChannelName property.

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

Remarks

Every registered channel has a unique name. The name is used to retrieve a specific channel when calling the ChannelServices.GetChannel method. The default name is "ipc client".

Applies to