Compartir vía


InstanceContext.OutgoingChannels Propiedad

Definición

Obtiene los canales con sesión salientes de la instancia de servicio.

public:
 property System::Collections::Generic::ICollection<System::ServiceModel::Channels::IChannel ^> ^ OutgoingChannels { System::Collections::Generic::ICollection<System::ServiceModel::Channels::IChannel ^> ^ get(); };
public System.Collections.Generic.ICollection<System.ServiceModel.Channels.IChannel> OutgoingChannels { get; }
member this.OutgoingChannels : System.Collections.Generic.ICollection<System.ServiceModel.Channels.IChannel>
Public ReadOnly Property OutgoingChannels As ICollection(Of IChannel)

Valor de propiedad

ICollection<T> de tipo IChannel que contiene los canales con sesión salientes de la instancia de servicio.

Excepciones

La instancia de servicio está cerrada y no se puede usar.

La instancia de servicio está en un estado defectuoso.

Ejemplos

En el código siguiente se muestra cómo acceder a la OutgoingChannels propiedad :

OperationContext operationContext = OperationContext.Current;
InstanceContext instanceContext = operationContext.InstanceContext;
ICollection<IChannel> OutgoingChannels = instanceContext.OutgoingChannels;

Se aplica a