AsyncResult Class

.NET Framework (current version)
 

An abstract base class that implements the IAsyncResult interface. Serves as a base class from which to derive IAsyncResult objects that can be used for common asynchronous programming scenarios.

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

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

public abstract class AsyncResult : IAsyncResult, IDisposable

NameDescription
System_CAPS_protmethodAsyncResult()

Called from constructors in derived classes to initialize an instance of the AsyncResult class that does not have a callback delegate or a state object.

System_CAPS_protmethodAsyncResult(AsyncCallback, Object)

Called from constructors in derived classes to initialize an instance of the AsyncResult class that has a callback delegate and a state object.

System_CAPS_protmethodAsyncResult(Object)

Called from constructors in derived classes to initialize an instance of the AsyncResult class that does not have a callback delegate but does have a state object.

NameDescription
System_CAPS_pubpropertyAsyncState

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

System_CAPS_pubpropertyAsyncWaitHandle

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

System_CAPS_pubpropertyCompletedSynchronously

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

System_CAPS_pubpropertyIsCompleted

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

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

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.

System_CAPS_pubmethodDispose()

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

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.

System_CAPS_pubmethodSystem_CAPS_staticEnd(IAsyncResult)

Call this method when the End function for the asynchronous operation is complete. It ensures that 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.(Overrides Object.Finalize().)

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

For more information see the System.IAsyncResult interface.

The TypedAsyncResult<T> class derives from AsyncResult.

.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: