C# Class FT.Search.Helpers.UrlHelperExtensions

Query string processing extensions
Afficher le fichier Open project: friism/folketsting

Méthodes publiques

Méthode Description
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.

Method Details

DictToQuerystring() public static méthode

public static DictToQuerystring ( string>.IDictionary qs ) : string
qs string>.IDictionary
Résultat string

ForQuery() public static méthode

public static ForQuery ( this helper, string solrQuery ) : string
helper this
solrQuery string
Résultat string

ParseQueryString() public static méthode

Parses a query string. If duplicates are present, the last key/value is kept.
public static ParseQueryString ( string s ) : string>.IDictionary
s string
Résultat string>.IDictionary

RemoveParameters() public static méthode

public static RemoveParameters ( this helper ) : string
helper this
Résultat string

RemoveParametersUrl() public static méthode

Removes parameters from an url's query string
public static RemoveParametersUrl ( this helper, string url ) : string
helper this
url string URL to process
Résultat string

SetParameter() public static méthode

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
Résultat string

SetParameter() public static méthode

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
Résultat string

SetParameters() public static méthode

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
Résultat string

SetParameters() public static méthode

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
Résultat string