Multiple choice technology enterprise content management

You create a new master page named myDefault.master. You install the master page as a part of a new site definition. You need to set MasterPageFile URL of the default.aspx page element to reference myDefault.master. which value should you use?

  1. ~masterurl/default.master

  2. ~masterurl/custom.master

  3. ~masterurl/myDefault.master

  4. ~site/myDefault.master

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The dynamic token ~masterurl/custom.master is used in SharePoint page layouts and site definitions to reference the custom master page of a site. Setting the MasterPageFile to this token allows the page to dynamically inherit the custom master page configured for the site.