Try our conversational search powered by Generative AI!

Class ContentSecurityCancellableEventArgs

Argument used in ContentSecuritySaving event.

Inheritance
System.Object
System.EventArgs
ContentSecurityCancellableEventArgs
Inherited Members
System.EventArgs.Empty
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public class ContentSecurityCancellableEventArgs : ContentSecurityEventArg

Constructors

ContentSecurityCancellableEventArgs(ContentReference, IContentSecurityDescriptor, SecuritySaveType)

Initializes a new instance of the ContentSecurityCancellableEventArgs class.

Declaration
public ContentSecurityCancellableEventArgs(ContentReference contentLink, IContentSecurityDescriptor contentSecurityDescriptor, SecuritySaveType securitySaveType)
Parameters
Type Name Description
ContentReference contentLink

The content link.

IContentSecurityDescriptor contentSecurityDescriptor

The content security descriptor.

SecuritySaveType securitySaveType

Type of the security save.

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