November Happy Hour will be moved to Thursday December 5th.

Class CultureSpecificAttribute

Makes a property culture specific.

Inheritance
System.Object
CultureSpecificAttribute
Namespace: EPiServer.DataAnnotations
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class CultureSpecificAttribute : Attribute
Remarks

A property can either be global (default) or culture specific.

Refer to "Attributes" and "Pages, Page Types and Page Templates" under "Content" in the Developer Guide for more information and examples.

Constructors

CultureSpecificAttribute()

Initializes a new instance of the CultureSpecificAttribute class.

Declaration
public CultureSpecificAttribute()

CultureSpecificAttribute(Boolean)

Initializes a new instance of the CultureSpecificAttribute class and sets the IsCultureSpecific value.

Declaration
public CultureSpecificAttribute(bool isCultureSpecific)
Parameters
Type Name Description
System.Boolean isCultureSpecific

Sets the value of the IsCultureSpecific property.

Properties

IsCultureSpecific

Gets a value indicating whether the property decorated with this attribute should have separate values for each culture.

Declaration
public bool IsCultureSpecific { get; }
Property Value
Type Description
System.Boolean

true if the property decorated with this attribute should have separate values for each culture; otherwise, false.

Remarks

Default value is true.

Extension Methods