Table of Contents

Class Language

Namespace
Dynamicweb.Ecommerce.International
Assembly
Dynamicweb.Ecommerce.dll

Represents the language.

[Serializable]
[PermissionEntity("Language")]
public class Language : ICloneable, IDisplayName, IPermissionEntity, IPermissionEntityLookup
Inheritance
Language
Implements
Inherited Members
Extension Methods

Constructors

Language()

Initializes a new instance of the class.

public Language()

Fields

PermissionName

public const string PermissionName = "Language"

Field Value

string

Properties

AutoId

Gets the language auto ID.

public int AutoId { get; }

Property Value

int

Code

Gets the two-letter ISO language code, e.g. "en".

public string Code { get; }

Property Value

string

Remarks

Use Culture to change the value of Code and CountryCode.

CountryCode

Gets the two-letter ISO country code, e.g. "US".

public string CountryCode { get; }

Property Value

string

Remarks

Use Culture to change the value of Code and CountryCode.

Culture

Gets or sets the culture name (IETF language tag), e.g. "en-US".

public string Culture { get; set; }

Property Value

string

Remarks

Setting this value will also change the value of Code and CountryCode.

IsDefault

Gets or sets value indicating whether the language is default.

public bool IsDefault { get; set; }

Property Value

bool

LanguageId

Gets or sets the language ID.

public string LanguageId { get; set; }

Property Value

string

Name

Gets or sets the language name.

public string Name { get; set; }

Property Value

string

NativeName

Gets or sets the native name.

public string NativeName { get; set; }

Property Value

string

Methods

Clone()

Creates a new object that is a copy of the current instance.

public object Clone()

Returns

object

A new object that is a copy of this instance.

GetCultureInfo()

Gets the culture information.

public static CultureInfo GetCultureInfo()

Returns

CultureInfo

The culture information.

GetDisplayName()

Yields a human-readable name for rendering.

public string GetDisplayName()

Returns

string

name

To top