TcpServerChannel.ChannelName Property

Definition

Gets the name of the current channel.

C#
public string ChannelName { get; }

Property Value

A String instance that contains the name of the channel.

Implements

Examples

The following code example shows the use of this property.

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

Remarks

Every registered channel has a unique name. The name is used to retrieve a specific channel when calling GetChannel.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1