C# 클래스 BlueCollar.Dashboard.QueryString

Represents a URL query string as a key/value collection.
파일 보기 프로젝트 열기: ChadBurggraf/blue-collar

공개 메소드들

메소드 설명
Add ( string key, IEnumerable values ) : void

Adds the given set of values to the query string for the specified key.

Add ( string key, string value ) : void

Adds a value to the query string for the specified key.

FromUrl ( Uri uri ) : QueryString

Parses a QueryString from the given Uri.

Get ( string key ) : string

Gets the value for the specified key.

GetAll ( string key ) : string[]

Gets a collection of all values for the specified key.

Parse ( string query ) : QueryString

Parses the given query string into a QueryString instance.

QueryString ( ) : System

Initializes a new instance of the QueryString class.

Remove ( string key ) : void

Removes the specified key and its value(s) from the query string.

Set ( string key, string value ) : void

Sets the value in the query string for the specified key.

SetAll ( string key, IEnumerable values ) : void

Sets all of the values in the given collection for the specified key.

ToOrderedDescendingString ( ) : string

Converts this instance into an ordered URL-encoded query string, sorted in descending order.

ToOrderedString ( ) : string

Converts this instance into an ordered URL-encoded query string, sorted in ascending order.

ToString ( ) : string

Converts this instance to a URL-encoded query string. This method is equivalent to ToOrderedString().

this ( string key ) : string

Gets or sets the value for the specified key.

비공개 메소드들

메소드 설명
ToOrderedString ( bool descending ) : string

Converts this instance into an ordered URL-encoded query string.

메소드 상세

Add() 공개 메소드

Adds the given set of values to the query string for the specified key.
public Add ( string key, IEnumerable values ) : void
key string The key to add the values for.
values IEnumerable The set of values to add.
리턴 void

Add() 공개 메소드

Adds a value to the query string for the specified key.
public Add ( string key, string value ) : void
key string The key to add the value for.
value string The value to add.
리턴 void

FromUrl() 공개 정적인 메소드

Parses a QueryString from the given Uri.
public static FromUrl ( Uri uri ) : QueryString
uri System.Uri The to the query of.
리턴 QueryString

Get() 공개 메소드

Gets the value for the specified key.
public Get ( string key ) : string
key string The key to get the value for.
리턴 string

GetAll() 공개 메소드

Gets a collection of all values for the specified key.
public GetAll ( string key ) : string[]
key string The key to get values for.
리턴 string[]

Parse() 공개 정적인 메소드

Parses the given query string into a QueryString instance.
public static Parse ( string query ) : QueryString
query string The query string to parse.
리턴 QueryString

QueryString() 공개 메소드

Initializes a new instance of the QueryString class.
public QueryString ( ) : System
리턴 System

Remove() 공개 메소드

Removes the specified key and its value(s) from the query string.
public Remove ( string key ) : void
key string The key to remove.
리턴 void

Set() 공개 메소드

Sets the value in the query string for the specified key.
public Set ( string key, string value ) : void
key string The key to set the value for.
value string The value to set.
리턴 void

SetAll() 공개 메소드

Sets all of the values in the given collection for the specified key.
public SetAll ( string key, IEnumerable values ) : void
key string The key to set the values for.
values IEnumerable The value collection to set.
리턴 void

ToOrderedDescendingString() 공개 메소드

Converts this instance into an ordered URL-encoded query string, sorted in descending order.
public ToOrderedDescendingString ( ) : string
리턴 string

ToOrderedString() 공개 메소드

Converts this instance into an ordered URL-encoded query string, sorted in ascending order.
public ToOrderedString ( ) : string
리턴 string

ToString() 공개 메소드

Converts this instance to a URL-encoded query string. This method is equivalent to ToOrderedString().
public ToString ( ) : string
리턴 string

this() 공개 메소드

Gets or sets the value for the specified key.
public this ( string key ) : string
key string The key to get or set the value for.
리턴 string