Share via


ViewDataAttribute.Key Property

Definition

Gets or sets the key used to get or add the property from value from ViewDataDictionary. When unspecified, the key is the property name.

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

Property Value

Applies to