InstanceContext.OutgoingChannels Propiedad

Definición

Obtiene canales con sesión que salen de la instancia del 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<IChannel>

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

Excepciones

La instancia del servicio se cierra y no se puede utilizar.

La instancia del servicio está en estado de error.

Ejemplos

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

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

Se aplica a