IDuplexSession.BeginCloseOutputSession Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Begins an asynchronous operation to terminate the outbound session.
BeginCloseOutputSession(AsyncCallback, Object) |
Begins an asynchronous operation to terminate the outbound session. |
BeginCloseOutputSession(TimeSpan, AsyncCallback, Object) |
Begins an asynchronous operation to terminate the outbound session with a specified timeout within which the operation must complete. |
- Source:
- IDuplexSession.cs
- Source:
- IDuplexSession.cs
Begins an asynchronous operation to terminate the outbound session.
public:
IAsyncResult ^ BeginCloseOutputSession(AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginCloseOutputSession (AsyncCallback callback, object state);
abstract member BeginCloseOutputSession : AsyncCallback * obj -> IAsyncResult
Public Function BeginCloseOutputSession (callback As AsyncCallback, state As Object) As IAsyncResult
Parameters
- callback
- AsyncCallback
The AsyncCallback delegate.
- state
- Object
An object
that contains state information for this request.
Returns
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.
Applies to
.NET 8 (package-provided) and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- Source:
- IDuplexSession.cs
- Source:
- IDuplexSession.cs
Begins an asynchronous operation to terminate the outbound session with a specified timeout within which the operation must complete.
public:
IAsyncResult ^ BeginCloseOutputSession(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginCloseOutputSession (TimeSpan timeout, AsyncCallback callback, object state);
abstract member BeginCloseOutputSession : TimeSpan * AsyncCallback * obj -> IAsyncResult
Public Function BeginCloseOutputSession (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult
Parameters
- timeout
- TimeSpan
The TimeSpan that specifies the interval of time within which the operation must complete.
- callback
- AsyncCallback
The AsyncCallback delegate.
- state
- Object
An object
that contains state information for this request.
Returns
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.
Applies to
.NET 8 (package-provided) and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: