InstanceContext.OutgoingChannels Propiedad
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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;