Partager via


CancelEventArgs.Cancel Property

Definition

Gets or sets a Boolean value that specifies whether the event is canceled.

public:
 property bool Cancel { bool get(); void set(bool value); };
public bool Cancel { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.Cancel : bool with get, set
Public Property Cancel As Boolean

Property Value

True if the event is canceled, otherwise false.

Attributes

Applies to