Gets a list of masters that are allowed to be created under this item.
A master is an instance of a template much like an item. When an item is created from a master, the master is copied into the new item which receives all the field values from the master. A master may contain subitems that are created whenever an item is created from a master.
The following example retrieves the master item. This can also be done by using the Master property.
{{
public MasterItem GetMaster(Item item) {
MasterItem result = item.Database.Masters[item.MasterID];
return result;
}
}}
Item Class | Sitecore.Data.Items Namespace