Share via


TempDataAttribute.Key 屬性

定義

取得或設定用來從 ITempDataDictionary 值取得或新增屬性的索引鍵。 未指定時,索引鍵會衍生自屬性名稱。

public:
 property System::String ^ Key { System::String ^ get(); void set(System::String ^ value); };
public string Key { get; set; }
public string? Key { get; set; }
member this.Key : string with get, set
Public Property Key As String

屬性值

適用於