RouteValueDictionary.Item[String] 屬性

定義

取得或設定與指定之索引鍵相關聯的值。

public:
 property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ key); void set(System::String ^ key, System::Object ^ value); };
public object this[string key] { get; set; }
member this.Item(string) : obj with get, set
Default Public Property Item(key As String) As Object

參數

key
String

要取得或設定之值的索引鍵。

屬性值

Object

與指定索引鍵相關聯的值;如果集合中沒有索引鍵,則為 null

實作

適用於

另請參閱