ViewResultBase.ViewName Property

Gets or sets the name of the view to render.

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

Syntax

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

Property Value

Type: System.String
The name of the view.

See Also

Reference

ViewResultBase Class

System.Web.Mvc Namespace