SPEventReceiverStatus Enumeration

Specifies the status returned from executing an event receiver.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<SubsetCallableTypeAttribute> _
Public Enumeration SPEventReceiverStatus
'Usage
Dim instance As SPEventReceiverStatus
[SubsetCallableTypeAttribute]
public enum SPEventReceiverStatus

Members

Member name Description
Continue The event is allowed to continue.
CancelNoError The event is cancelled but no error message is displayed.
CancelWithError The event is cancelled and an error message is displayed.
CancelWithRedirectUrl The event is cancelled, but a URL is provided that redirects the user to a custom error message page, or to any desired URL.

See Also

Reference

Microsoft.SharePoint Namespace