Show / Hide Table of Contents

    Class QueryStringConverter

    This utility class is designed to make HTTP request querystring specific System.Collections.Specialized.NameValueCollection related conversions easier to work with.

    Inheritance
    System.Object
    QueryStringConverter
    Namespace: Cuemon.Web
    Assembly: Cuemon.Web.dll
    Syntax
    public static class QueryStringConverter

    Methods

    | Improve this Doc

    FromDictionary(IDictionary<String, String[]>)

    Converts the specified query into its System.String equivalent.

    Declaration
    public static string FromDictionary(IDictionary<string, string[]> query)
    Parameters
    Type Name Description
    System.Collections.Generic.IDictionary<System.String, System.String[]> query

    The query string values to convert.

    Returns
    Type Description
    System.String

    A System.String equivalent to the values in the query.

    | Improve this Doc

    FromDictionary(IDictionary<String, String[]>, Boolean)

    Converts the specified query into its System.String equivalent.

    Declaration
    public static string FromDictionary(IDictionary<string, string[]> query, bool urlEncode)
    Parameters
    Type Name Description
    System.Collections.Generic.IDictionary<System.String, System.String[]> query

    The query string values to convert.

    System.Boolean urlEncode

    Specify true to encode the query into a URL-encoded string; otherwise, false.

    Returns
    Type Description
    System.String

    A System.String equivalent to the values in the query.

    | Improve this Doc

    FromNameValueCollection(NameValueCollection)

    Converts the specified query into its System.String equivalent.

    Declaration
    public static string FromNameValueCollection(NameValueCollection query)
    Parameters
    Type Name Description
    System.Collections.Specialized.NameValueCollection query

    The query string values to convert.

    Returns
    Type Description
    System.String

    A System.String equivalent to the values in the query.

    | Improve this Doc

    FromNameValueCollection(NameValueCollection, Boolean)

    Converts the specified query into its System.String equivalent.

    Declaration
    public static string FromNameValueCollection(NameValueCollection query, bool urlEncode)
    Parameters
    Type Name Description
    System.Collections.Specialized.NameValueCollection query

    The query string values to convert.

    System.Boolean urlEncode

    Specify true to encode the query into a URL-encoded string; otherwise, false.

    Returns
    Type Description
    System.String

    A System.String equivalent to the values in the query.

    | Improve this Doc

    FromString(String)

    Converts the specified query into its System.Collections.Specialized.NameValueCollection equivalent.

    Declaration
    public static NameValueCollection FromString(string query)
    Parameters
    Type Name Description
    System.String query

    The query string values to convert.

    Returns
    Type Description
    System.Collections.Specialized.NameValueCollection

    A System.Collections.Specialized.NameValueCollection equivalent to the values in the query.

    | Improve this Doc

    FromString(String, Boolean)

    Converts the specified query into its System.Collections.Specialized.NameValueCollection equivalent.

    Declaration
    public static NameValueCollection FromString(string query, bool urlDecode)
    Parameters
    Type Name Description
    System.String query

    The query string values to convert.

    System.Boolean urlDecode

    Specify true to decode the query that has been encoded for transmission in a URL; otherwise, false.

    Returns
    Type Description
    System.Collections.Specialized.NameValueCollection

    A System.Collections.Specialized.NameValueCollection equivalent to the values in the query.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX