C# 클래스 ScrewTurn.Wiki.Preferences

Allows access to current user's preferences.
파일 보기 프로젝트 열기: mono/ScrewTurnWiki 1 사용 예제들

공개 메소드들

메소드 설명
AlignWithServerTimezone ( System.DateTime dateTime ) : System.DateTime

Aligns a date/time with the default timezone.

AlignWithTimezone ( System.DateTime dateTime ) : System.DateTime

Aligns a date/time with the User's preferences (if any).

DeletePreferencesCookie ( ) : void

Deletes the language and timezone preferences cookie.

LoadLanguageFromCookie ( ) : string

Loads the language from a cookie.

LoadLanguageFromUserData ( ) : string

Loads the language from the current user's data.

LoadTimezoneFromCookie ( ) : int?

Loads the timezone from a cookie.

LoadTimezoneFromUserData ( ) : int?

Loads the timezone from the current user's data.

SavePreferencesInCookie ( string culture, int timezone ) : void

Saves language and timezone preferences into a cookie.

SavePreferencesInUserData ( string culture, int timezone ) : bool

Saves language and timezone preferences into the current user's data.

메소드 상세

AlignWithServerTimezone() 공개 정적인 메소드

Aligns a date/time with the default timezone.
public static AlignWithServerTimezone ( System.DateTime dateTime ) : System.DateTime
dateTime System.DateTime The date/time to align.
리턴 System.DateTime

AlignWithTimezone() 공개 정적인 메소드

Aligns a date/time with the User's preferences (if any).
public static AlignWithTimezone ( System.DateTime dateTime ) : System.DateTime
dateTime System.DateTime The date/time to align.
리턴 System.DateTime

DeletePreferencesCookie() 공개 정적인 메소드

Deletes the language and timezone preferences cookie.
public static DeletePreferencesCookie ( ) : void
리턴 void

LoadLanguageFromCookie() 공개 정적인 메소드

Loads the language from a cookie.
public static LoadLanguageFromCookie ( ) : string
리턴 string

LoadLanguageFromUserData() 공개 정적인 메소드

Loads the language from the current user's data.
public static LoadLanguageFromUserData ( ) : string
리턴 string

LoadTimezoneFromCookie() 공개 정적인 메소드

Loads the timezone from a cookie.
public static LoadTimezoneFromCookie ( ) : int?
리턴 int?

LoadTimezoneFromUserData() 공개 정적인 메소드

Loads the timezone from the current user's data.
public static LoadTimezoneFromUserData ( ) : int?
리턴 int?

SavePreferencesInCookie() 공개 정적인 메소드

Saves language and timezone preferences into a cookie.
public static SavePreferencesInCookie ( string culture, int timezone ) : void
culture string The culture.
timezone int The timezone.
리턴 void

SavePreferencesInUserData() 공개 정적인 메소드

Saves language and timezone preferences into the current user's data.
public static SavePreferencesInUserData ( string culture, int timezone ) : bool
culture string The culture.
timezone int The timezone.
리턴 bool