TcpServerChannel.ChannelName Property

 

Gets the name of the current channel.

Namespace:   System.Runtime.Remoting.Channels.Tcp
Assembly:  System.Runtime.Remoting (in System.Runtime.Remoting.dll)

public string ChannelName {
	[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.Infrastructure, 
		Infrastructure = true)]
	get;
}

Property Value

Type: System.String

A String instance that contains the name of the channel.

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

The following code example shows the use of this property.

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

.NET Framework
Available since 1.1
Return to top
Show: