SPWeb.MasterUrl Property (Microsoft.SharePoint)
SPWeb.MasterUrl Property (Microsoft.SharePoint)
Gets or sets the URL of the master page that is used for the Web site.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Syntax

'Usage

Dim instance As SPWeb
Dim value As String

value = instance.MasterUrl

instance.MasterUrl = value

'Declaration

Public Property MasterUrl As String

Property Value

A string that contains the URL of the master page.
Remarks

The MasterUrl and CustomMasterUrl properties are both set to "/_catalogs/masterpage/default.master" by default. If you subsequently need to delete the default.master file, you must set both of those properties to a different value. If you set just one of them to a different value, an error is raised that suggests that the default.master file is still being used as the master page for the site.

See Also

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View