QueryString.Create 方法

定义

重载

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

创建由给定名称值对组成的查询字符串。

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

创建由给定名称值对组成的查询字符串。

Create(String, String)

使用单个给定参数名称和值创建查询字符串。

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

Source:
QueryString.cs
Source:
QueryString.cs
Source:
QueryString.cs

创建由给定名称值对组成的查询字符串。

public:
 static Microsoft::AspNetCore::Http::QueryString Create(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, Microsoft::Extensions::Primitives::StringValues>> ^ parameters);
public static Microsoft.AspNetCore.Http.QueryString Create (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Microsoft.Extensions.Primitives.StringValues>> parameters);
static member Create : seq<System.Collections.Generic.KeyValuePair<string, Microsoft.Extensions.Primitives.StringValues>> -> Microsoft.AspNetCore.Http.QueryString
Public Shared Function Create (parameters As IEnumerable(Of KeyValuePair(Of String, StringValues))) As QueryString

参数

返回

生成的 QueryString

适用于

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

Source:
QueryString.cs
Source:
QueryString.cs
Source:
QueryString.cs

创建由给定名称值对组成的查询字符串。

public:
 static Microsoft::AspNetCore::Http::QueryString Create(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ parameters);
public static Microsoft.AspNetCore.Http.QueryString Create (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> parameters);
public static Microsoft.AspNetCore.Http.QueryString Create (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string?>> parameters);
static member Create : seq<System.Collections.Generic.KeyValuePair<string, string>> -> Microsoft.AspNetCore.Http.QueryString
Public Shared Function Create (parameters As IEnumerable(Of KeyValuePair(Of String, String))) As QueryString

参数

返回

生成的 QueryString

适用于

Create(String, String)

Source:
QueryString.cs
Source:
QueryString.cs
Source:
QueryString.cs

使用单个给定参数名称和值创建查询字符串。

public:
 static Microsoft::AspNetCore::Http::QueryString Create(System::String ^ name, System::String ^ value);
public static Microsoft.AspNetCore.Http.QueryString Create (string name, string value);
static member Create : string * string -> Microsoft.AspNetCore.Http.QueryString
Public Shared Function Create (name As String, value As String) As QueryString

参数

name
String

未编码的参数名称

value
String

未编码的参数值

返回

生成的 QueryString

适用于