Query​Helpers Query​Helpers Class

Definition

public static class QueryHelpersPublic Module QueryHelpers
Inheritance
System.ObjectSystem.Object
QueryHelpersQueryHelpers

Inherited Members

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

Methods

AddQueryString(String, IDictionary<String, String>) AddQueryString(String, IDictionary(Of String, String))

Append the given query keys and values to the uri.
public static string AddQueryString(string uri, IDictionary<string, string> queryString)Public Shared Function AddQueryString(uri As String, queryString As IDictionary(Of String, String)) As String
Parameters
uri
System.String System.String
The base uri.
queryString
System.Collections.Generic.IDictionary<System.String, System.String> System.Collections.Generic.IDictionary(Of System.String, System.String)
A collection of name value query pairs to append.
Returns
System.String System.String
The combined result.

AddQueryString(String, String, String) AddQueryString(String, String, String)

Append the given query key and value to the URI.
public static string AddQueryString(string uri, string name, string value)Public Shared Function AddQueryString(uri As String, name As String, value As String) As String
Parameters
uri
System.String System.String
The base URI.
name
System.String System.String
The name of the query key.
value
System.String System.String
The query value.
Returns
System.String System.String
The combined result.

ParseNullableQuery(String) ParseNullableQuery(String)

Parse a query string into its component key and value parts.
public static Dictionary<string, StringValues> ParseNullableQuery(string queryString)Public Shared Function ParseNullableQuery(queryString As String) As Dictionary(Of String, StringValues)
Parameters
queryString
System.String System.String
The raw query string value, with or without the leading '?'.
Returns
System.Collections.Generic.Dictionary<System.String, StringValues> System.Collections.Generic.Dictionary(Of System.String, StringValues)
A collection of parsed keys and values, null if there are no entries.

ParseQuery(String) ParseQuery(String)

Parse a query string into its component key and value parts.
public static Dictionary<string, StringValues> ParseQuery(string queryString)Public Shared Function ParseQuery(queryString As String) As Dictionary(Of String, StringValues)
Parameters
queryString
System.String System.String
The raw query string value, with or without the leading '?'.
Returns
System.Collections.Generic.Dictionary<System.String, StringValues> System.Collections.Generic.Dictionary(Of System.String, StringValues)
A collection of parsed keys and values.