Class ContentLanguageSettingCancellableEventArgs
Event arguments used in ContentLanguageSettingSaving and ContentLanguageSettingDeleting events
Inheritance
Inherited Members
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class ContentLanguageSettingCancellableEventArgs : ContentLanguageSettingEventArgs
Constructors
ContentLanguageSettingCancellableEventArgs(ContentReference, String)
Initializes a new instance of the ContentLanguageSettingCancellableEventArgs class.
Declaration
public ContentLanguageSettingCancellableEventArgs(ContentReference contentLink, string language)
Parameters
Type | Name | Description |
---|---|---|
ContentReference | contentLink | The content link. |
System.String | language | The language. |
ContentLanguageSettingCancellableEventArgs(ContentReference, String, String, String, Boolean)
Initializes a new instance of the ContentLanguageSettingCancellableEventArgs class.
Declaration
public ContentLanguageSettingCancellableEventArgs(ContentReference contentLink, string language, string replacementLanguage, string fallbackLanguage, bool active)
Parameters
Type | Name | Description |
---|---|---|
ContentReference | contentLink | The content link. |
System.String | language | The language. |
System.String | replacementLanguage | The replacement language. |
System.String | fallbackLanguage | The fallback language. |
System.Boolean | active |
|
ContentLanguageSettingCancellableEventArgs(ContentLanguageSetting)
Initializes a new instance of the ContentLanguageSettingCancellableEventArgs class.
Declaration
public ContentLanguageSettingCancellableEventArgs(ContentLanguageSetting setting)
Parameters
Type | Name | Description |
---|---|---|
ContentLanguageSetting | setting |
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.