共用方式為


TempDataDictionary.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; }
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

屬性值

實作

適用於