InstanceContext.OutgoingChannels Egenskap

Definition

Hämtar de sessionskänsliga kanaler som utgående från tjänstinstansen.

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)

Egenskapsvärde

Den ICollection<T> typ IChannel som innehåller de sessionskänsliga kanaler som utgåendes från tjänstinstansen.

Undantag

Tjänstinstansen är stängd och kan inte användas.

Tjänstinstansen är i ett felaktigt tillstånd.

Exempel

Följande kod visar hur du kommer åt egenskapen OutgoingChannels :

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

Gäller för