Compartir a través de


TcpServerChannel.ChannelData Propiedad

Definición

Obtiene los datos específicos del 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 propiedad

Instancia de ChannelDataStore que contiene los datos específicos del canal.

Implementaciones

Ejemplos

En el ejemplo de código siguiente se muestra el uso de esta propiedad.

// 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);
}

Comentarios

Aunque se devuelve como una instancia de System.Object, el valor de esta propiedad se puede convertir en una instancia de que ChannelDataStore describa el canal al que escucha el TcpServerChannel objeto.

Se aplica a