Share via


ViewUserControl.ViewDataKey Property

Gets or sets the view-data key.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Property ViewDataKey As String
    Get
    Set
public string ViewDataKey { get; set; }
public:
property String^ ViewDataKey {
    String^ get ();
    void set (String^ value);
}

Property Value

Type: System.String
The view-data key.

See Also

Reference

ViewUserControl Class

System.Web.Mvc Namespace