Dela via


QueryHelpers.AddQueryString Method

Definition

Overloads

AddQueryString(String, IDictionary<String,String>)

Append the given query keys and values to the URI.

AddQueryString(String, IEnumerable<KeyValuePair<String,StringValues>>)

Append the given query keys and values to the URI.

AddQueryString(String, IEnumerable<KeyValuePair<String,String>>)

Append the given query keys and values to the URI.

AddQueryString(String, String, String)

Append the given query key and value to the URI.

AddQueryString(String, IDictionary<String,String>)

Source:
QueryHelpers.cs
Source:
QueryHelpers.cs
Source:
QueryHelpers.cs

Append the given query keys and values to the URI.

public:
 static System::String ^ AddQueryString(System::String ^ uri, System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ queryString);
public static string AddQueryString (string uri, System.Collections.Generic.IDictionary<string,string> queryString);
public static string AddQueryString (string uri, System.Collections.Generic.IDictionary<string,string?> queryString);
static member AddQueryString : string * System.Collections.Generic.IDictionary<string, string> -> string
Public Shared Function AddQueryString (uri As String, queryString As IDictionary(Of String, String)) As String

Parameters

uri
String

The base URI.

queryString
IDictionary<String,String>

A dictionary of query keys and values to append.

Returns

The combined result.

Exceptions

queryString is null.

Applies to

AddQueryString(String, IEnumerable<KeyValuePair<String,StringValues>>)

Source:
QueryHelpers.cs

Append the given query keys and values to the URI.

public:
 static System::String ^ AddQueryString(System::String ^ uri, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, Microsoft::Extensions::Primitives::StringValues>> ^ queryString);
public static string AddQueryString (string uri, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Microsoft.Extensions.Primitives.StringValues>> queryString);
static member AddQueryString : string * seq<System.Collections.Generic.KeyValuePair<string, Microsoft.Extensions.Primitives.StringValues>> -> string
Public Shared Function AddQueryString (uri As String, queryString As IEnumerable(Of KeyValuePair(Of String, StringValues))) As String

Parameters

uri
String

The base URI.

queryString
IEnumerable<KeyValuePair<String,StringValues>>

A collection of query names and values to append.

Returns

The combined result.

Exceptions

queryString is null.

Applies to

AddQueryString(String, IEnumerable<KeyValuePair<String,String>>)

Source:
QueryHelpers.cs

Append the given query keys and values to the URI.

public:
 static System::String ^ AddQueryString(System::String ^ uri, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ queryString);
public static string AddQueryString (string uri, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string?>> queryString);
static member AddQueryString : string * seq<System.Collections.Generic.KeyValuePair<string, string>> -> string
Public Shared Function AddQueryString (uri As String, queryString As IEnumerable(Of KeyValuePair(Of String, String))) As String

Parameters

uri
String

The base URI.

queryString
IEnumerable<KeyValuePair<String,String>>

A collection of name value query pairs to append.

Returns

The combined result.

Exceptions

queryString is null.

Applies to

AddQueryString(String, String, String)

Source:
QueryHelpers.cs
Source:
QueryHelpers.cs
Source:
QueryHelpers.cs

Append the given query key and value to the URI.

public:
 static System::String ^ AddQueryString(System::String ^ uri, System::String ^ name, System::String ^ value);
public static string AddQueryString (string uri, string name, string value);
static member AddQueryString : string * string * string -> string
Public Shared Function AddQueryString (uri As String, name As String, value As String) As String

Parameters

uri
String

The base URI.

name
String

The name of the query key.

value
String

The query value.

Returns

The combined result.

Exceptions

value is null.

Applies to