共用方式為


RouteValueDictionary 建構函式

定義

多載

RouteValueDictionary()

建立空的 RouteValueDictionary

RouteValueDictionary(RouteValueDictionary)

使用指定的 dictionary 建立 RouteValueDictionary 初始化的 。

RouteValueDictionary(IEnumerable<KeyValuePair<String,Object>>)

使用指定的 values 建立 RouteValueDictionary 初始化的 。

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

使用指定的 values 建立 RouteValueDictionary 初始化的 。

RouteValueDictionary(Object)

使用指定的 values 建立 RouteValueDictionary 初始化的 。

RouteValueDictionary()

來源:
RouteValueDictionary.cs
來源:
RouteValueDictionary.cs

建立空的 RouteValueDictionary

public:
 RouteValueDictionary();
public RouteValueDictionary ();
Public Sub New ()

適用於

RouteValueDictionary(RouteValueDictionary)

使用指定的 dictionary 建立 RouteValueDictionary 初始化的 。

public RouteValueDictionary (Microsoft.AspNetCore.Routing.RouteValueDictionary? dictionary);
new Microsoft.AspNetCore.Routing.RouteValueDictionary : Microsoft.AspNetCore.Routing.RouteValueDictionary -> Microsoft.AspNetCore.Routing.RouteValueDictionary
Public Sub New (dictionary As RouteValueDictionary)

參數

dictionary
RouteValueDictionary

RouteValueDictionary 初始化字典的 。

適用於

RouteValueDictionary(IEnumerable<KeyValuePair<String,Object>>)

使用指定的 values 建立 RouteValueDictionary 初始化的 。

public RouteValueDictionary (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? values);
new Microsoft.AspNetCore.Routing.RouteValueDictionary : seq<System.Collections.Generic.KeyValuePair<string, obj>> -> Microsoft.AspNetCore.Routing.RouteValueDictionary
Public Sub New (values As IEnumerable(Of KeyValuePair(Of String, Object)))

參數

values
IEnumerable<KeyValuePair<String,Object>>

要新增至字典的值序列。

適用於

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

使用指定的 values 建立 RouteValueDictionary 初始化的 。

public RouteValueDictionary (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string?>>? values);
new Microsoft.AspNetCore.Routing.RouteValueDictionary : seq<System.Collections.Generic.KeyValuePair<string, string>> -> Microsoft.AspNetCore.Routing.RouteValueDictionary
Public Sub New (values As IEnumerable(Of KeyValuePair(Of String, String)))

參數

values
IEnumerable<KeyValuePair<String,String>>

要新增至字典的值序列。

適用於

RouteValueDictionary(Object)

來源:
RouteValueDictionary.cs
來源:
RouteValueDictionary.cs

使用指定的 values 建立 RouteValueDictionary 初始化的 。

public:
 RouteValueDictionary(System::Object ^ values);
public RouteValueDictionary (object values);
public RouteValueDictionary (object? values);
new Microsoft.AspNetCore.Routing.RouteValueDictionary : obj -> Microsoft.AspNetCore.Routing.RouteValueDictionary
Public Sub New (values As Object)

參數

values
Object

要初始化字典的物件。 值可以是 類型 IDictionary<TKey,TValue>IReadOnlyDictionary<TKey,TValue> 物件,且具有公開金鑰做為索引鍵/值組的物件。

備註

如果值為 字典或其他 IEnumerable<T>KeyValuePair<TKey,TValue> ,則會複製其專案。 否則,物件會解譯為一組索引鍵/值組,其中屬性名稱為索引鍵,而屬性值是值,並複製到字典中。 只會考慮公用實例非索引屬性。

適用於