InstanceContext.OutgoingChannels Propriété

Définition

Obtient les canaux de session qui sortent de l'instance de service.Gets the sessionful channels that are outgoing from the service instance.

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.The ICollection<T> of type IChannel that contains the sessionful channels outgoing from the service instance.

Exceptions

L'instance de service est fermée et ne peut pas être utilisée.The service instance is closed and cannot be used.

L'instance de service est en état de faute.The service instance is in a faulted state.

Exemples

Le code suivant illustre comment accéder à la propriété OutgoingChannels :The following code illustrates how to access the OutgoingChannels property:

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

S’applique à