Export (0) Print
Expand All

TypedAsyncResult<T> Class

.NET Framework 4.5

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

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

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

public class TypedAsyncResult<T> : AsyncResult

Type Parameters

T

The type of the result.

The TypedAsyncResult<T> type exposes the following members.

  NameDescription
Public methodTypedAsyncResult<T>(Object)Initializes a new instance of the TypedAsyncResult<T> class that has a state object.
Public methodTypedAsyncResult<T>(AsyncCallback, Object)Initializes a new instance of the TypedAsyncResult<T> class that has a callback delegate and a state object.
Top

  NameDescription
Public propertyAsyncStateGets a user-defined object that qualifies or contains information about an asynchronous operation. (Inherited from AsyncResult.)
Public propertyAsyncWaitHandleGets a WaitHandle that is used to wait for an asynchronous operation to complete. (Inherited from AsyncResult.)
Public propertyCompletedSynchronouslyGets a value that indicates whether the asynchronous operation completed synchronously. (Inherited from AsyncResult.)
Public propertyIsCompletedGets a value that indicates whether the asynchronous operation has completed. (Inherited from AsyncResult.)
Public propertyResultGets the typed result of the completed asynchronous operation.
Top

  NameDescription
Protected methodComplete(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.)
Public methodComplete(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.
Protected methodComplete(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.)
Public methodComplete(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.
Public methodDispose()Releases the resources used by the current instance of the AsyncResult class. (Inherited from AsyncResult.)
Protected methodDispose(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.)
Public methodStatic memberEndEnd 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.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows the AsyncResult object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from AsyncResult.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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