CancelableAsyncResult Class

Class that is used to access the state of the asynchronous operation or to cancel the result.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.WorkItemTracking.Client.CancelableAsyncResult

Namespace:  Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly:  Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)

Syntax

'Declaration
Public Class CancelableAsyncResult _
    Implements ICancelableAsyncResult, IAsyncResult
public class CancelableAsyncResult : ICancelableAsyncResult, 
    IAsyncResult
public ref class CancelableAsyncResult : ICancelableAsyncResult, 
    IAsyncResult
type CancelableAsyncResult =  
    class 
        interface ICancelableAsyncResult 
        interface IAsyncResult 
    end
public class CancelableAsyncResult implements ICancelableAsyncResult, IAsyncResult

The CancelableAsyncResult type exposes the following members.

Properties

  Name Description
Public property Action Gets the action that the asynchronous call represents.
Public property AsyncState Gets the state of the asynchronous call.
Public property AsyncWaitHandle Gets the asynchronous wait handle.
Public property Callback Gets or sets the asynchronous callback method.
Public property CompletedSynchronously Returns true if the call completed synchronously; otherwise, false.
Public property IsCanceled Returns true if the asynchronous action has been canceled; otherwise, false.
Public property IsCompleted Returns true if the asynchronous action has completed; otherwise, false.

Top

Methods

  Name Description
Public method BeginAsync Starts the asynchronous task.
Public method Cancel Cancels the asynchronous action.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

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

See Also

Reference

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace