SPWeb.MasterUrl property

Gets or sets the URL of the master page that is used for the website.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

public string MasterUrl { get; set; }

Property value

Type: System.String
A string that contains the URL of the master page.

Remarks

At runtime, the value in this property replaces the ~masterurl/default.master token in content pages.

See also

Reference

SPWeb class

SPWeb members

Microsoft.SharePoint namespace