TcpChannel.ChannelData Propriété

Définition

Obtient les données spécifiques au canal.

public:
 property System::Object ^ ChannelData { System::Object ^ get(); };
public object ChannelData { get; }
member this.ChannelData : obj
Public ReadOnly Property ChannelData As Object

Valeur de propriété

Instance ChannelDataStore qui contient des données spécifiques au canal.

Implémente

Exemples

L’exemple de code suivant montre comment utiliser cette propriété.

// Show the URIs associated with the channel.
ChannelDataStore^ data = (ChannelDataStore^) serverChannel->ChannelData;
for each (String^ uri in data->ChannelUris)
{
    Console::WriteLine("The channel URI is {0}.", uri);
}
// 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);
}

Remarques

Bien qu’elle soit retournée en tant qu’instance de System.Object, la valeur de cette propriété peut être castée en une instance de ChannelDataStore description du canal vers lequel l’objet HttpServerChannel écoute.

S’applique à