IpcChannel.ChannelData Property

 

Gets the channel-specific data.

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

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

Property Value

Type: System.Object

A ChannelDataStore instance that contains 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 HttpServerChannel object listens.

The following code example shows how to use the ChannelData property. This code example is part of a larger example provided for the IpcChannel class.

// Show the URIs associated with the channel.
System.Runtime.Remoting.Channels.ChannelDataStore channelData = 
    (System.Runtime.Remoting.Channels.ChannelDataStore) 
    serverChannel.ChannelData;
foreach (string uri in channelData.ChannelUris)
{
    Console.WriteLine("The channel URI is {0}.", uri);
}

.NET Framework
Available since 2.0
Return to top
Show: