This topic has not yet been rated - Rate this topic

SPEventPropertiesBase.Cancel Property

Gets or sets a Boolean value that indicates whether to cancel the event.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public bool Cancel { get; set; }

Property Value

Type: System.Boolean
true to cancel the event; otherwise, false.

This is a deprecated property and should not be used. Instead, use the Status property to cancel an event. A true value is equivalent to setting Status to CancelWithError. A false value is equivalent to setting Status to Continue.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ