C# Класс Sage.Configuration.LocaleInfo

Contains information about a language locale.
Наследование: IXmlConvertible
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
FormatAsLongDate ( System.DateTime date ) : string

Formats a date as a long date for this LocaleInfo.

FormatAsLongDate ( string dateString ) : string

Formats the specified dateString as a long date for this LocaleInfo.

FormatAsShortDate ( System.DateTime date ) : string

Formats the specified date as a short date string for this LocaleInfo.

FormatAsShortDate ( string dateString ) : string

Formats the specified dateString to a short date for this LocaleInfo.

IsSubsetOf ( string locale ) : bool

Determines whether this locale is a subset of the specified locale.

LocaleInfo ( ) : System

Initializes a new instance of the LocaleInfo class.

LocaleInfo ( XmlElement infoElement ) : System

Initializes a new instance of the LocaleInfo class, using the specified infoElement.

Parse ( XmlElement element ) : void
ToString ( ) : string
ToXml ( XmlDocument document ) : XmlElement

Описание методов

FormatAsLongDate() публичный Метод

Formats a date as a long date for this LocaleInfo.
public FormatAsLongDate ( System.DateTime date ) : string
date System.DateTime The date to convert to string.
Результат string

FormatAsLongDate() публичный Метод

Formats the specified dateString as a long date for this LocaleInfo.
/// If the specified is null or empty. ///
public FormatAsLongDate ( string dateString ) : string
dateString string The string to format.
Результат string

FormatAsShortDate() публичный Метод

Formats the specified date as a short date string for this LocaleInfo.
public FormatAsShortDate ( System.DateTime date ) : string
date System.DateTime The date to convert to string.
Результат string

FormatAsShortDate() публичный Метод

Formats the specified dateString to a short date for this LocaleInfo.
/// If the specified is null or empty. ///
public FormatAsShortDate ( string dateString ) : string
dateString string The string to format.
Результат string

IsSubsetOf() публичный Метод

Determines whether this locale is a subset of the specified locale.
/// If the specified is null or empty. ///
public IsSubsetOf ( string locale ) : bool
locale string The locale to check against.
Результат bool

LocaleInfo() публичный Метод

Initializes a new instance of the LocaleInfo class.
public LocaleInfo ( ) : System
Результат System

LocaleInfo() публичный Метод

Initializes a new instance of the LocaleInfo class, using the specified infoElement.
/// is null. ///
public LocaleInfo ( XmlElement infoElement ) : System
infoElement System.Xml.XmlElement The that contains the information about the locale.
Результат System

Parse() публичный Метод

public Parse ( XmlElement element ) : void
element System.Xml.XmlElement
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string

ToXml() публичный Метод

public ToXml ( XmlDocument document ) : XmlElement
document System.Xml.XmlDocument
Результат System.Xml.XmlElement