TypedAsyncResult<T> TypedAsyncResult<T> TypedAsyncResult<T> 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>TypedAsyncResult<T>TypedAsyncResult<T>TypedAsyncResult<T>

Constructors

TypedAsyncResult<T>(AsyncCallback, Object) TypedAsyncResult<T>(AsyncCallback, Object) TypedAsyncResult<T>(AsyncCallback, 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) TypedAsyncResult<T>(Object) TypedAsyncResult<T>(Object) TypedAsyncResult<T>(Object)

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

Properties

AsyncState AsyncState AsyncState AsyncState

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

(Inherited from AsyncResult)
AsyncWaitHandle AsyncWaitHandle AsyncWaitHandle AsyncWaitHandle

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

(Inherited from AsyncResult)
CompletedSynchronously CompletedSynchronously CompletedSynchronously CompletedSynchronously

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

(Inherited from AsyncResult)
IsCompleted IsCompleted IsCompleted IsCompleted

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

(Inherited from AsyncResult)
Result Result Result Result

Gets the typed result of the completed asynchronous operation.

Methods

Complete(Boolean) Complete(Boolean) Complete(Boolean) 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) Complete(Boolean, Exception) Complete(Boolean, Exception) 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) Complete(T, Boolean) Complete(T, Boolean) 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) Complete(T, Boolean, Exception) Complete(T, Boolean, Exception) 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() Dispose() Dispose() Dispose()

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

(Inherited from AsyncResult)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) 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(IAsyncResult) End(IAsyncResult) 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) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to