Class ContentSecurityCancellableEventArgs
Argument used in ContentSecuritySaving event.
Inherited Members
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3Syntax
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.