IDuplexSession.BeginCloseOutputSession Method (AsyncCallback, Object)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Begins an asynchronous operation to terminate the outbound session.

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

Syntax

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

Parameters

  • 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.

Remarks

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. This operation must complete within a default interval of time.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.