Class ContentLanguageSettingCancellableEventArgs

Inheritance
System.Object
System.EventArgs
ContentLanguageSettingCancellableEventArgs
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 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

true if the ContentLanguageSetting are 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.

Extension Methods