Notes to Callers
Note that this method does not complete the task, it only sets the cancellation state.
An override implementation may call the SetCompleted method though, when the task is actually completed.
public virtual void Cancel()Public Overridable Sub Cancelpublic:
virtual void Cancel()abstract Cancel : unit -> unit
override Cancel : unit -> unit