IDuplexSession.BeginCloseOutputSession Method (TimeSpan, AsyncCallback, Object)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
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)
Syntax
'Declaration
Function BeginCloseOutputSession ( _
timeout As TimeSpan, _
callback As AsyncCallback, _
state As Object _
) As IAsyncResult
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.
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.
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.