TcpServerChannel.ChannelData Property


Gets channel-specific data.

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

public object ChannelData {
	[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.Infrastructure, 
		Infrastructure = true)]

Property Value

Type: System.Object

A ChannelDataStore instance containing channel-specific data.

Although returned as an instance of System.Object, the value of this property can be cast to an instance of ChannelDataStore describing the channel to which the TcpServerChannel object listens.

The following code example shows the use of this property.

// Show the URIs associated with the channel.
ChannelDataStore data = (ChannelDataStore) serverChannel.ChannelData;
foreach (string uri in data.ChannelUris)

.NET Framework
Available since 1.1
Return to top