TypedAsyncResult<T> Constructors
Definition
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.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om