SPWebMasterUrl 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)
Public Property MasterUrl As[%$TOPIC/ms462597_en-us_office_15_1_0_0_0_0%]GetSet
Dim instance As [%$TOPIC/ms462597_en-us_office_15_1_0_1_0_0%]Dim value As[%$TOPIC/ms462597_en-us_office_15_1_0_1_0_1%]value = instance.MasterUrl

instance.MasterUrl = value
public[%$TOPIC/ms462597_en-us_office_15_1_0_2_0_0%]MasterUrl { get; set; }

Property value

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

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