Partager via


InstanceContext.OutgoingChannels Propriété

Définition

Obtient les canaux avec session sortants 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é

Type ICollection<T>IChannel qui contient les canaux avec 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 dans un état d’erreur.

Exemples

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

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

S’applique à