Compartilhar via


ViewResult.MasterName Property

Gets the name of the master view (such as a master page or template) to use when the view is rendered.

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

Syntax

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

Property Value

Type: System.String
The name of the master view.

See Also

Reference

ViewResult Class

System.Web.Mvc Namespace