C# Класс FT.Search.Helpers.UrlHelperExtensions

Query string processing extensions
Показать файл Открыть проект

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

Метод Описание
DictToQuerystring ( string>.IDictionary qs ) : string
ForQuery ( this helper, string solrQuery ) : string
ParseQueryString ( string s ) : string>.IDictionary

Parses a query string. If duplicates are present, the last key/value is kept.

RemoveParameters ( this helper ) : string
RemoveParametersUrl ( this helper, string url ) : string

Removes parameters from an url's query string

SetParameter ( this helper, string key, object value ) : string

Sets/changes a single parameter from the current query string.

SetParameter ( this helper, string url, string key, string value ) : string

Sets/changes an url's query string parameter.

SetParameters ( this helper, object parameterDictionary ) : string

Sets/changes the current query string's parameters, using parameterDictionary as dictionary

SetParameters ( this helper, string url, object>.IDictionary parameters ) : string

Sets/changes an url's query string parameters.

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

DictToQuerystring() публичный статический Метод

public static DictToQuerystring ( string>.IDictionary qs ) : string
qs string>.IDictionary
Результат string

ForQuery() публичный статический Метод

public static ForQuery ( this helper, string solrQuery ) : string
helper this
solrQuery string
Результат string

ParseQueryString() публичный статический Метод

Parses a query string. If duplicates are present, the last key/value is kept.
public static ParseQueryString ( string s ) : string>.IDictionary
s string
Результат string>.IDictionary

RemoveParameters() публичный статический Метод

public static RemoveParameters ( this helper ) : string
helper this
Результат string

RemoveParametersUrl() публичный статический Метод

Removes parameters from an url's query string
public static RemoveParametersUrl ( this helper, string url ) : string
helper this
url string URL to process
Результат string

SetParameter() публичный статический Метод

Sets/changes a single parameter from the current query string.
public static SetParameter ( this helper, string key, object value ) : string
helper this
key string Parameter key
value object Parameter value
Результат string

SetParameter() публичный статический Метод

Sets/changes an url's query string parameter.
public static SetParameter ( this helper, string url, string key, string value ) : string
helper this
url string URL to process
key string Query string parameter key to set/change
value string Query string parameter value
Результат string

SetParameters() публичный статический Метод

Sets/changes the current query string's parameters, using parameterDictionary as dictionary
public static SetParameters ( this helper, object parameterDictionary ) : string
helper this
parameterDictionary object Parameters to set/change
Результат string

SetParameters() публичный статический Метод

Sets/changes an url's query string parameters.
public static SetParameters ( this helper, string url, object>.IDictionary parameters ) : string
helper this
url string URL to process
parameters object>.IDictionary Paramteres to set/change
Результат string