Muokkaa

Jaa


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(System::Object ^ state);
public TypedAsyncResult (object state);
new System.IdentityModel.TypedAsyncResult<'T> : obj -> System.IdentityModel.TypedAsyncResult<'T>
Public Sub New (state As Object)

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

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, System::Object ^ state);
public TypedAsyncResult (AsyncCallback callback, object state);
new System.IdentityModel.TypedAsyncResult<'T> : AsyncCallback * obj -> System.IdentityModel.TypedAsyncResult<'T>
Public Sub New (callback As AsyncCallback, state As Object)

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