NavigationManagerExtensions.GetUriWithQueryParameter 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetUriWithQueryParameter(NavigationManager, String, Boolean)
傳回 URI,其建構方式是使用新增或更新的單一參數進行更新 Uri 。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, bool value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * bool -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As Boolean) As String
參數
- navigationManager
- NavigationManager
- name
- String
要加入或更新的參數名稱。
- value
- Boolean
要加入或更新的參數值。
傳回
適用於
GetUriWithQueryParameter(NavigationManager, String, TimeOnly)
傳回 URI,其建構方式是使用新增或更新的單一參數進行更新 Uri 。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, TimeOnly value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * TimeOnly -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As TimeOnly) As String
參數
- navigationManager
- NavigationManager
- name
- String
要加入或更新的參數名稱。
- value
- TimeOnly
要加入或更新的參數值。
傳回
適用於
GetUriWithQueryParameter(NavigationManager, String, String)
傳回 URI,其建構方式是使用新增、更新或移除的單一參數進行更新 Uri 。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, string? value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * string -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As String) As String
參數
- navigationManager
- NavigationManager
- name
- String
要加入或更新的參數名稱。
- value
- String
要加入或更新的參數值。
傳回
備註
如果 value
為 null
,則如果參數存在於 URI 中,則會將其移除。 否則,將會新增或更新它。
適用於
GetUriWithQueryParameter(NavigationManager, String, Single)
傳回 URI,其建構方式是使用新增或更新的單一參數進行更新 Uri 。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, float value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * single -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As Single) As String
參數
- navigationManager
- NavigationManager
- name
- String
要加入或更新的參數名稱。
- value
- Single
要加入或更新的參數值。
傳回
適用於
GetUriWithQueryParameter(NavigationManager, String, Nullable<TimeOnly>)
傳回 URI,其建構方式是使用新增、更新或移除的單一參數進行更新 Uri 。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, TimeOnly? value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * Nullable<TimeOnly> -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As Nullable(Of TimeOnly)) As String
參數
- navigationManager
- NavigationManager
- name
- String
要加入或更新的參數名稱。
傳回
備註
如果 value
為 null
,則如果參數存在於 URI 中,則會將其移除。 否則,將會新增或更新它。
適用於
GetUriWithQueryParameter(NavigationManager, String, Nullable<Single>)
傳回 URI,其建構方式是使用新增、更新或移除的單一參數進行更新 Uri 。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, float? value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * Nullable<single> -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As Nullable(Of Single)) As String
參數
- navigationManager
- NavigationManager
- name
- String
要加入或更新的參數名稱。
傳回
備註
如果 value
為 null
,則如果參數存在於 URI 中,則會將其移除。 否則,將會新增或更新它。
適用於
GetUriWithQueryParameter(NavigationManager, String, Nullable<Int64>)
傳回 URI,其建構方式是使用新增、更新或移除的單一參數進行更新 Uri 。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, long? value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * Nullable<int64> -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As Nullable(Of Long)) As String
參數
- navigationManager
- NavigationManager
- name
- String
要加入或更新的參數名稱。
傳回
備註
如果 value
為 null
,則如果參數存在於 URI 中,則會將其移除。 否則,將會新增或更新它。
適用於
GetUriWithQueryParameter(NavigationManager, String, Nullable<Int32>)
傳回 URI,其建構方式是使用新增、更新或移除的單一參數進行更新 Uri 。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, int? value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * Nullable<int> -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As Nullable(Of Integer)) As String
參數
- navigationManager
- NavigationManager
- name
- String
要加入或更新的參數名稱。
傳回
備註
如果 value
為 null
,則如果參數存在於 URI 中,則會將其移除。 否則,將會新增或更新它。
適用於
GetUriWithQueryParameter(NavigationManager, String, Nullable<Guid>)
傳回 URI,其建構方式是使用新增、更新或移除的單一參數進行更新 Uri 。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, Guid? value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * Nullable<Guid> -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As Nullable(Of Guid)) As String
參數
- navigationManager
- NavigationManager
- name
- String
要加入或更新的參數名稱。
傳回
備註
如果 value
為 null
,則如果參數存在於 URI 中,則會將其移除。 否則,將會新增或更新它。
適用於
GetUriWithQueryParameter(NavigationManager, String, Nullable<Double>)
傳回 URI,其建構方式是使用新增、更新或移除的單一參數進行更新 Uri 。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, double? value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * Nullable<double> -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As Nullable(Of Double)) As String
參數
- navigationManager
- NavigationManager
- name
- String
要加入或更新的參數名稱。
傳回
備註
如果 value
為 null
,則如果參數存在於 URI 中,則會將其移除。 否則,將會新增或更新它。
適用於
GetUriWithQueryParameter(NavigationManager, String, Nullable<Decimal>)
使用新增、更新或移除的單一參數來傳 Uri 回建構的 URI。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, decimal? value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * Nullable<decimal> -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As Nullable(Of Decimal)) As String
參數
- navigationManager
- NavigationManager
- name
- String
要加入或更新的參數名稱。
傳回
備註
如果 為 value
null
,則會在 URI 中存在 參數時移除。 否則,將會新增或更新它。
適用於
GetUriWithQueryParameter(NavigationManager, String, Nullable<DateOnly>)
使用新增、更新或移除的單一參數來傳 Uri 回建構的 URI。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, DateOnly? value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * Nullable<DateOnly> -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As Nullable(Of DateOnly)) As String
參數
- navigationManager
- NavigationManager
- name
- String
要新增或更新的參數名稱。
傳回
備註
如果 為 value
null
,則會在 URI 中存在 參數時移除。 否則,將會新增或更新它。
適用於
GetUriWithQueryParameter(NavigationManager, String, Nullable<Boolean>)
使用新增、更新或移除的單一參數來傳 Uri 回建構的 URI。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, bool? value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * Nullable<bool> -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As Nullable(Of Boolean)) As String
參數
- navigationManager
- NavigationManager
- name
- String
要新增或更新的參數名稱。
傳回
備註
如果 為 value
null
,則會在 URI 中存在 參數時移除。 否則,將會新增或更新它。
適用於
GetUriWithQueryParameter(NavigationManager, String, Int64)
傳回 URI,其建構方式是使用新增或更新的單一參數進行更新 Uri 。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, long value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * int64 -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As Long) As String
參數
- navigationManager
- NavigationManager
- name
- String
要新增或更新的參數名稱。
- value
- Int64
要加入或更新的參數值。
傳回
適用於
GetUriWithQueryParameter(NavigationManager, String, Int32)
傳回 URI,其建構方式是使用新增或更新的單一參數進行更新 Uri 。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, int value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * int -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As Integer) As String
參數
- navigationManager
- NavigationManager
- name
- String
要新增或更新的參數名稱。
- value
- Int32
要加入或更新的參數值。
傳回
適用於
GetUriWithQueryParameter(NavigationManager, String, Guid)
傳回 URI,其建構方式是使用新增或更新的單一參數進行更新 Uri 。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, Guid value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * Guid -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As Guid) As String
參數
- navigationManager
- NavigationManager
- name
- String
要新增或更新的參數名稱。
- value
- Guid
要加入或更新的參數值。
傳回
適用於
GetUriWithQueryParameter(NavigationManager, String, Double)
傳回 URI,其建構方式是使用新增或更新的單一參數進行更新 Uri 。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, double value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * double -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As Double) As String
參數
- navigationManager
- NavigationManager
- name
- String
要新增或更新的參數名稱。
- value
- Double
要加入或更新的參數值。
傳回
適用於
GetUriWithQueryParameter(NavigationManager, String, Decimal)
傳回 URI,其建構方式是使用新增或更新的單一參數進行更新 Uri 。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, decimal value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * decimal -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As Decimal) As String
參數
- navigationManager
- NavigationManager
- name
- String
要新增或更新的參數名稱。
- value
- Decimal
要加入或更新的參數值。
傳回
適用於
GetUriWithQueryParameter(NavigationManager, String, DateTime)
傳回 URI,其建構方式是使用新增或更新的單一參數進行更新 Uri 。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, DateTime value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * DateTime -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As DateTime) As String
參數
- navigationManager
- NavigationManager
- name
- String
要新增或更新的參數名稱。
- value
- DateTime
要加入或更新的參數值。
傳回
適用於
GetUriWithQueryParameter(NavigationManager, String, DateOnly)
傳回 URI,其建構方式是使用新增或更新的單一參數進行更新 Uri 。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, DateOnly value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * DateOnly -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As DateOnly) As String
參數
- navigationManager
- NavigationManager
- name
- String
要新增或更新的參數名稱。
- value
- DateOnly
要加入或更新的參數值。
傳回
適用於
GetUriWithQueryParameter(NavigationManager, String, Nullable<DateTime>)
使用新增、更新或移除的單一參數來傳 Uri 回建構的 URI。
public static string GetUriWithQueryParameter (this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, DateTime? value);
static member GetUriWithQueryParameter : Microsoft.AspNetCore.Components.NavigationManager * string * Nullable<DateTime> -> string
<Extension()>
Public Function GetUriWithQueryParameter (navigationManager As NavigationManager, name As String, value As Nullable(Of DateTime)) As String
參數
- navigationManager
- NavigationManager
- name
- String
要新增或更新的參數名稱。
傳回
備註
如果 為 value
null
,則會在 URI 中存在 參數時移除。 否則,將會新增或更新它。