TypedAsyncResult<T> Constructors
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.
Initializes a new instance of the TypedAsyncResult<T> class.
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. |
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
.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 |
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
.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 |
.NET-tilbakemelding
.NET er et åpen kilde-prosjekt. Velg en kobling for å gi tilbakemelding: