InstanceContext::OutgoingChannels Property

 

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

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

public:
property ICollection<IChannel^>^ OutgoingChannels {
	ICollection<IChannel^>^ 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: