BeginCloseOutputSession Method (TimeSpan, AsyncCallback, Object)
Collapse the table of content
Expand the table of content

IDuplexSession.BeginCloseOutputSession Method (TimeSpan, AsyncCallback, Object)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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)

'Declaration
Function BeginCloseOutputSession ( _
	timeout As TimeSpan, _
	callback As AsyncCallback, _
	state As Object _
) As IAsyncResult

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft