TypedAsyncResult<T> Class

Definition

A concrete implementation of AsyncResult that will wrap the result Type and return it when the End(IAsyncResult) method is called.

generic <typename T>
public ref class TypedAsyncResult : System::IdentityModel::AsyncResult
public class TypedAsyncResult<T> : System.IdentityModel.AsyncResult
type TypedAsyncResult<'T> = class
    inherit AsyncResult
Public Class TypedAsyncResult(Of T)
Inherits AsyncResult

Type Parameters

T

The type of the result.

Inheritance
TypedAsyncResult<T>

Constructors

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.

Properties

AsyncState

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

(Inherited from AsyncResult)
AsyncWaitHandle

Gets a WaitHandle that is used to wait for an asynchronous operation to complete.

(Inherited from AsyncResult)
CompletedSynchronously

Gets a value that indicates whether the asynchronous operation completed synchronously.

(Inherited from AsyncResult)
IsCompleted

Gets a value that indicates whether the asynchronous operation has completed.

(Inherited from AsyncResult)
Result

Gets the typed result of the completed asynchronous operation.

Methods

Complete(Boolean)

Call this version of complete when your asynchronous operation is complete and no exception was encountered. It updates the state of the operation and notifies the callback.

(Inherited from AsyncResult)
Complete(Boolean, Exception)

Call this version of complete if you raise an exception during processing. In addition to notifying the callback, it captures the exception and stores it to be thrown during the call to the End(IAsyncResult) method.

(Inherited from AsyncResult)
Complete(T, Boolean)

Call this version of complete when your asynchronous operation is complete and no exception was encountered. It updates the state of the operation and notifies the callback.

Complete(T, Boolean, Exception)

Call this version of complete if you raise an exception during processing. In addition to notifying the callback, it captures the exception and stores it to be thrown during the call to the End(IAsyncResult) method.

Dispose()

Releases the resources used by the current instance of the AsyncResult class.

(Inherited from AsyncResult)
Dispose(Boolean)

Called by the Dispose() and Finalize() methods to release the managed and unmanaged resources used by the current instance of the AsyncResult class.

(Inherited from AsyncResult)
End(IAsyncResult)

End should be called when the End function for the asynchronous operation is complete. It ensures the asynchronous operation is complete, and does some common validation.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to