InstanceContext.OutgoingChannels Propriété

Définition

Obtient les canaux de session qui sortent de l'instance de service.

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)

Valeur de propriété

ICollection<IChannel>

ICollection<T> de type IChannel qui contient les canaux de session sortant de l'instance de service.

Exceptions

L'instance de service est fermée et ne peut pas être utilisée.

L'instance de service est en état de faute.

Exemples

Le code suivant illustre comment accéder à la propriété OutgoingChannels :

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

S’applique à