Class CultureSpecificAttribute
Makes a property culture specific.
Inheritance
Namespace: EPiServer.DataAnnotations
Assembly: EPiServer.dll
Version: 12.0.3Syntax
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 |
|
Remarks
Default value is true
.