C# 클래스 Sage.Configuration.LocaleInfo

Contains information about a language locale.
상속: IXmlConvertible
파일 보기 프로젝트 열기: igorfrance/sage 1 사용 예제들

공개 메소드들

메소드 설명
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