C# 클래스 Open.Core.Common.UrlHash

Represents the 'hash' portion of the browser's URL (occuring after the # charachter)
파일 보기 프로젝트 열기: philcockfield/Open.TestHarness.SL

공개 메소드들

메소드 설명
GetValue ( string key ) : string

Gets the value corresponding to the given key in a case-insensitive manner (eg. from a URL ending in #key=value).

SetValue ( string key, string value ) : void

Adds, or updates, the key-value pair to the URL hash in non-destructive manner.

Non-destructive means that the existing values within the URL hash are retained.

SetValues ( string>.Dictionary values ) : void

Converts the given dictionary to a URL-hash and replaces the current URL-hash with this value.

Use this method, in conjuction with the ValueDictionary to perform non-destructive edits to the URL-hash.

비공개 메소드들

메소드 설명
GetDictionary ( bool keyToLower ) : string>.Dictionary
ToUrlHash ( string>.Dictionary values ) : string

메소드 상세

GetValue() 공개 정적인 메소드

Gets the value corresponding to the given key in a case-insensitive manner (eg. from a URL ending in #key=value).
public static GetValue ( string key ) : string
key string The key of the value (not case-sensitive).
리턴 string

SetValue() 공개 정적인 메소드

Adds, or updates, the key-value pair to the URL hash in non-destructive manner.
Non-destructive means that the existing values within the URL hash are retained.
public static SetValue ( string key, string value ) : void
key string The key of the value (case-sensitive).
value string The value (pass null to remove).
리턴 void

SetValues() 공개 정적인 메소드

Converts the given dictionary to a URL-hash and replaces the current URL-hash with this value.
Use this method, in conjuction with the ValueDictionary to perform non-destructive edits to the URL-hash.
public static SetValues ( string>.Dictionary values ) : void
values string>.Dictionary A dictionary of values (like the dictionary retreived from the 'ValueDictionary' property).
리턴 void