SPEventPropertiesBase.Status property

Gets or sets the status of trapping the event.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property Status As SPEventReceiverStatus
    Get
    Set
'Usage
Dim instance As SPEventPropertiesBase
Dim value As SPEventReceiverStatus

value = instance.Status

instance.Status = value
public SPEventReceiverStatus Status { get; set; }

Property value

Type: Microsoft.SharePoint.SPEventReceiverStatus
A SPEventReceiverStatus value that specifies the status.

Remarks

A value of Continue means that there is no error.

A value of CancelNoError means to silently cancel the request as if the request has succeeded.

A value of CancelWithError means to cancel the request with the error message specified in ErrorMessage.

A value of CancelWithRedirectUrl means to cancel the request and redirect to the URL specified in RedirectUrl.

See also

Reference

SPEventPropertiesBase class

SPEventPropertiesBase members

Microsoft.SharePoint namespace