SaaS CMS has officially launched! Learn more now.

Class ContentSecurityDeleteCancellableEventArg

Argument used in ContentSecurityDeleting event.

Inheritance
System.Object
ContentSecurityDeleteCancellableEventArg
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class ContentSecurityDeleteCancellableEventArg : ContentSecurityDeleteEventArg

Constructors

ContentSecurityDeleteCancellableEventArg(String, SecurityEntityType)

Initializes a new instance of the ContentSecurityDeleteCancellableEventArg class.

Declaration
public ContentSecurityDeleteCancellableEventArg(string userOrRoleName, SecurityEntityType securityEntityType)
Parameters
Type Name Description
System.String userOrRoleName
SecurityEntityType securityEntityType

Properties

CancelAction

Set value to abort the current event handling

Declaration
public bool CancelAction { get; set; }
Property Value
Type Description
System.Boolean
Remarks

Changing this value may not always change the behavior, see the specific event for details.

CancelReason

Gets or sets the reason for cancel.

Declaration
public string CancelReason { get; set; }
Property Value
Type Description
System.String

The cancel reason.

Remarks

If the cancellation results in an EPiServerCancelAction, this string will be used as the message in the exception.

Extension Methods