ClientBase<TChannel>.ChannelBase<T>.ICommunicationObject.BeginClose Method

Definition

Begins an operation to close a communication object.

Overloads

ICommunicationObject.BeginClose(AsyncCallback, Object)

Begins an asynchronous operation to close a communication object.

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to close a communication object with a specified time-out.

ICommunicationObject.BeginClose(AsyncCallback, Object)

Source:
ClientBase.cs
Source:
ClientBase.cs
Source:
netstandard.cs

Begins an asynchronous operation to close a communication object.

IAsyncResult ICommunicationObject.BeginClose (AsyncCallback callback, object state);

Parameters

callback
AsyncCallback

The AsyncCallback delegate that receives notification of the completion of the asynchronous close operation.

state
Object

An object specified by the application, that contains state information associated with the asynchronous close operation.

Returns

An IAsyncResult that references the asynchronous close operation.

Implements

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided)
.NET Framework 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

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

Source:
ClientBase.cs
Source:
ClientBase.cs
Source:
netstandard.cs

Begins an asynchronous operation to close a communication object with a specified time-out.

IAsyncResult ICommunicationObject.BeginClose (TimeSpan timeout, AsyncCallback callback, object state);

Parameters

timeout
TimeSpan

The timespan that specifies how long the send operation has to complete before timing out.

callback
AsyncCallback

The AsyncCallback delegate that receives notification of the completion of the asynchronous close operation.

state
Object

An object, specified by the application, that contains state information associated with the asynchronous close operation.

Returns

The IAsyncResult that references the asynchronous close operation.

Implements

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided)
.NET Framework 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