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.

IDuplexSession::BeginCloseOutputSession Method (TimeSpan, AsyncCallback^, Object^)

 

Begins an asynchronous operation to terminate the outbound session with a specified timeout within which the operation must complete.

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

IAsyncResult^ BeginCloseOutputSession(
	TimeSpan timeout,
	AsyncCallback^ callback,
	Object^ state
)

Parameters

timeout
Type: System::TimeSpan

The TimeSpan that specifies the interval of time within which the operation must complete.

callback
Type: System::AsyncCallback^

The AsyncCallback delegate.

state
Type: System::Object^

An object that contains state information for this request.

Return Value

Type: System::IAsyncResult^

The IAsyncResult that references the asynchronous outbound session termination.

Terminating the outbound session does not affect the incoming session and so makes no statement about the ability to receive messages on the session associated with the input channel.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft