Share via


2.2.1.4 SPEventReceiverStatus

This enumeration is used to specify the result of an event receiver.

 namespace Microsoft.SharePoint 
 {
     enum SPEventReceiverStatus
     {
         Continue,
         CancelNoError,
         CancelWithError,
         CancelWithRedirectUrl
     }
 }

Continue: The event succeeded and the request will continue.

CancelNoError: The event failed and the request needs to cancel without an error.

CancelWithError: The event failed and the request needs to cancel with an error.

CancelWithRedirectUrl: The event failed and the request needs to cancel and redirect to another URL.