ANHAdmin.AsyncOperation.Cancel C# (CSharp) Method

Cancel() public method

Attempt to cancel the current operation. This returns immediately to the caller. No guarantee is made as to whether the operation will be successfully cancelled. All that can be known is that at some point, one of the three events Completed, Cancelled, or Failed will be raised at some point.
public Cancel ( ) : void
return void
        public virtual void Cancel()
        {
            lock (this)
            {
                cancelledFlag = true;
            }
        }