TypedAsyncResult(T) Class

TypedAsyncResult<T> Class

.NET Framework (current version)
 

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

Namespace:   System.IdentityModel
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

System.Object
  System.IdentityModel.AsyncResult
    System.IdentityModel.TypedAsyncResult<T>

public class TypedAsyncResult<T> : AsyncResult

Type Parameters

T

The type of the result.

NameDescription
System_CAPS_pubmethodTypedAsyncResult<T>(AsyncCallback, Object)

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

System_CAPS_pubmethodTypedAsyncResult<T>(Object)

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

NameDescription
System_CAPS_pubpropertyAsyncState

Gets a user-defined object that qualifies or contains information about an asynchronous operation.(Inherited from AsyncResult.)

System_CAPS_pubpropertyAsyncWaitHandle

Gets a WaitHandle that is used to wait for an asynchronous operation to complete.(Inherited from AsyncResult.)

System_CAPS_pubpropertyCompletedSynchronously

Gets a value that indicates whether the asynchronous operation completed synchronously.(Inherited from AsyncResult.)

System_CAPS_pubpropertyIsCompleted

Gets a value that indicates whether the asynchronous operation has completed.(Inherited from AsyncResult.)

System_CAPS_pubpropertyResult

Gets the typed result of the completed asynchronous operation.

NameDescription
System_CAPS_pubmethodComplete(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.

System_CAPS_pubmethodComplete(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 method.

System_CAPS_protmethodComplete(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.)

System_CAPS_protmethodComplete(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 method.(Inherited from AsyncResult.)

System_CAPS_pubmethodDispose()

Releases the resources used by the current instance of the AsyncResult class.(Inherited from AsyncResult.)

System_CAPS_protmethodDispose(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.)

System_CAPS_pubmethodSystem_CAPS_staticEnd(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.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows the AsyncResult object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from AsyncResult.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

.NET Framework
Available since 4.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft