TcpChannel.ChannelData Property

Definition

Gets the channel-specific data.

C#
public object ChannelData { get; }

Property Value

A ChannelDataStore instance that contains channel-specific data.

Implements

Examples

The following code example shows how to use this property.

C#
// Show the URIs associated with the channel.
ChannelDataStore data = (ChannelDataStore) serverChannel.ChannelData;
foreach (string uri in data.ChannelUris)
{
    Console.WriteLine("The channel URI is {0}.", uri);
}

Remarks

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.

Applies to

Tuote Versiot
.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