ReceiveContext.BeginAbandon Method

Definition

Begins an asynchronous abandon operation.

Overloads

BeginAbandon(TimeSpan, AsyncCallback, Object)

Begins an asynchronous abandon operation with the specified timeout, asynchronous callback, and user-defined state data.

BeginAbandon(Exception, TimeSpan, AsyncCallback, Object)

Begins an asynchronous abandon operation with the specified exception, timeout, asynchronous callback, and user-defined state data.

BeginAbandon(TimeSpan, AsyncCallback, Object)

Begins an asynchronous abandon operation with the specified timeout, asynchronous callback, and user-defined state data.

C#
public virtual IAsyncResult BeginAbandon(TimeSpan timeout, AsyncCallback callback, object state);

Parameters

timeout
TimeSpan

The timeout for the abandon operation to complete.

callback
AsyncCallback

The asynchronous callback delegate that receives the notification of the asynchronous operation completion.

state
Object

The user-defined state data.

Returns

A IAsyncResult that references the asynchronous abandon operation.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BeginAbandon(Exception, TimeSpan, AsyncCallback, Object)

Begins an asynchronous abandon operation with the specified exception, timeout, asynchronous callback, and user-defined state data.

C#
public virtual IAsyncResult BeginAbandon(Exception exception, TimeSpan timeout, AsyncCallback callback, object state);

Parameters

exception
Exception

An exception that contains the reason for the abandon operation.

timeout
TimeSpan

The timeout for the abandon operation to complete.

callback
AsyncCallback

The asynchronous callback delegate that receives the notification of the asynchronous operation completion.

state
Object

the user-defined state data.

Returns

An IAsyncResult that references the asynchronous abandon operation.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1