Share via


ViewDataAttribute.Key Proprietà

Definizione

Ottiene o imposta la chiave utilizzata per ottenere o aggiungere la proprietà dal valore da ViewDataDictionary. Se non specificato, la chiave è il nome della proprietà.

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

Valore della proprietà

Si applica a