InstanceContext.OutgoingChannels Vlastnost

Definice

Získá kanály relace, které jsou odchozí z instance služby.

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)

Hodnota vlastnosti

ICollection<IChannel>

Typ ICollection<T> IChannel , který obsahuje odchozí kanály relace z instance služby.

Výjimky

Instance služby je uzavřena a nelze ji použít.

Instance služby je v chybném stavu.

Příklady

Následující kód ukazuje, jak získat přístup k OutgoingChannels vlastnosti:

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

Platí pro