IpcChannel.ChannelData Propriedade

Definição

Obtém os dados específicos do canal.Gets the channel-specific data.

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

Valor da propriedade

Object

Uma ChannelDataStore instância que contém dados específicos do canal.A ChannelDataStore instance that contains channel-specific data.

Implementações

Exemplos

O exemplo de código a seguir mostra como usar a ChannelData propriedade.The following code example shows how to use the ChannelData property. Este exemplo de código faz parte de um exemplo maior fornecido para a IpcChannel classe.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;
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);
}

Comentários

Embora seja retornado como uma instância do System.Object , o valor dessa propriedade pode ser convertido em uma instância do ChannelDataStore que descreve o canal para o qual o HttpServerChannel objeto escuta.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.

Aplica-se a