IInvokable.TryCancel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to cancel the invocation.
public virtual bool TryCancel();
abstract member TryCancel : unit -> bool
override this.TryCancel : unit -> bool
Public Overridable Function TryCancel () As Boolean
Returns
true if cancellation was requested, otherwise false.
Remarks
This is only valid after SetTarget(ITargetHolder) has been called, and only has an effect for requests which support cancellation.