Partage via


IpcChannel.ChannelData Propriété

Définition

Obtient les données spécifiques de 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 de ChannelDataStore contenant les données spécifiques de canal.

Implémente

Exemples

L'exemple de code suivant montre comment utiliser la propriété ChannelData. Cet exemple de code fait partie d’un exemple plus grand fourni pour la IpcChannel classe .

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

Remarques

Bien que renvoyée en tant que instance de System.Object, la valeur de cette propriété peut être convertie en un instance de ChannelDataStore décrire le canal auquel l’objet HttpServerChannel écoute.

S’applique à