docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class QueryArgumentsParser

    Helper methods to parse query arguments from a Uri.

    Inheritance
    object
    QueryArgumentsParser
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Cloud.Common
    Assembly: Unity.Cloud.Common.dll
    Syntax
    public static class QueryArgumentsParser

    Methods

    GetDictionaryFromArguments(Uri, bool)

    Parse the a Uri and returns a Dictionary of keys and values as string.

    Declaration
    public static Dictionary<string, string> GetDictionaryFromArguments(Uri uri, bool allowOverwrite = false)
    Parameters
    Type Name Description
    Uri uri

    The Uri containing a query.

    bool allowOverwrite

    Whether to allow a query to be overwritten if it exists more than once.

    Returns
    Type Description
    Dictionary<string, string>

    The resulting Dictionary<TKey, TValue>.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown when uri is null.

    GetDictionaryFromString(string, bool)

    Parse the a query and returns a Dictionary of keys and values as string.

    Declaration
    public static Dictionary<string, string> GetDictionaryFromString(string queryString, bool allowOverwrite = false)
    Parameters
    Type Name Description
    string queryString

    The query to parse.

    bool allowOverwrite

    Whether to allow a query to be overwritten if it exists more than once.

    Returns
    Type Description
    Dictionary<string, string>

    The resulting Dictionary<TKey, TValue>.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)