Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

InstanceContext.OutgoingChannels Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the sessionful channels that are outgoing from the service instance.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public ICollection<IChannel> OutgoingChannels { get; }

Property Value

Type: System.Collections.Generic.ICollection<IChannel>

The ICollection<T> of type IChannel that contains the sessionful channels outgoing from the service instance.

Exception Condition
ObjectDisposedException

The service instance is closed and cannot be used.

CommunicationObjectFaultedException

The service instance is in a faulted state.

The following code illustrates how to access the OutgoingChannels property:

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

.NET Framework
Available since 3.0
Return to top
Show:
© 2018 Microsoft