TcpServerChannel.ChannelData Propriedade

Definição

Obtém dados específicos do canal.

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

Valor de Propriedade

Uma ChannelDataStore instância contendo dados específicos do canal.

Implementações

Exemplos

O seguinte exemplo de código mostra a utilização desta propriedade.

// Show the URIs associated with the channel.
ChannelDataStore^ data = dynamic_cast<ChannelDataStore^>(serverChannel->ChannelData);
System::Collections::IEnumerator^ myEnum = data->ChannelUris->GetEnumerator();
while ( myEnum->MoveNext() )
{
   String^ uri = safe_cast<String^>(myEnum->Current);
   Console::WriteLine( uri );
}
// Show the URIs associated with the channel.
ChannelDataStore data = (ChannelDataStore) serverChannel.ChannelData;
foreach (string uri in data.ChannelUris)
{
    Console.WriteLine(uri);
}

Observações

Embora devolvido como uma instância de System.Object, o valor desta propriedade pode ser lançado para uma instância de ChannelDataStore descrever o canal ao qual o TcpServerChannel objeto ouve.

Aplica-se a