SPWebCustomMasterUrl property

Gets or sets the URL for a custom master page file to apply to the website.

Namespace:   Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Public Property CustomMasterUrl As[%$TOPIC/ms459564_en-us_office_15_1_0_0_0_0%]GetSet
Dim instance As [%$TOPIC/ms459564_en-us_office_15_1_0_1_0_0%]Dim value As[%$TOPIC/ms459564_en-us_office_15_1_0_1_0_1%]value = instance.CustomMasterUrl

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

Property value

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

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