TypedAsyncResult<T> Constructors

Definition

Initializes a new instance of the TypedAsyncResult<T> class.

Overloads

TypedAsyncResult<T>(Object)

Initializes a new instance of the TypedAsyncResult<T> class that has a state object.

TypedAsyncResult<T>(AsyncCallback, Object)

Initializes a new instance of the TypedAsyncResult<T> class that has a callback delegate and a state object.

TypedAsyncResult<T>(Object)

Initializes a new instance of the TypedAsyncResult<T> class that has a state object.

public TypedAsyncResult (object state);

Parameters

state
Object

A user-defined object that qualifies or contains information about an asynchronous operation.

Remarks

Use this constructor if your TypedAsyncResult<T> instance does not need a callback delegate.

Applies to

.NET Framework 4.8.1 og andre versjoner
Produkt Versjoner
.NET Framework 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

TypedAsyncResult<T>(AsyncCallback, Object)

Initializes a new instance of the TypedAsyncResult<T> class that has a callback delegate and a state object.

public TypedAsyncResult (AsyncCallback callback, object state);

Parameters

callback
AsyncCallback

The method to be called when the asynchronous operation completes.

state
Object

A user-defined object that qualifies or contains information about an asynchronous operation.

Applies to

.NET Framework 4.8.1 og andre versjoner
Produkt Versjoner
.NET Framework 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