Share via


ViewDataAttribute.Key Vlastnost

Definice

Získá nebo nastaví klíč použitý k získání nebo přidání vlastnosti z hodnoty z ViewDataDictionary. Pokud není zadán, je klíčem název vlastnosti.

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

Hodnota vlastnosti

Platí pro