
248
CHAPTER 9 Building a Site ProviSioning SyStem
<Field Type=”UserMulti” Name=”DefaultOwners”
DisplayName=”Default Owners”/>
<Field Type=”UserMulti” Name=”DefaultMembers”
DisplayName=”Default Members”/>
<Field Type=”UserMulti” Name=”DefaultViewers”
DisplayName=”Default Viewers”/>
<Field Type=”UserMulti” Name=”SiteRequestors”
DisplayName=”Site Requestors”/>
</Fields>
New Site Requests List
Next, create a list denition for your Site Requests list:
1. In the Project Explorer, right-click the Project node (not the Solution node) and select Add
and then New Item.
2. Under Installed Templates to the left, within Visual C# project types, select SharePoint, 2010.
3. From the available types, select List Denition, and enter a name of Site Requests.
4. Click Add, and the Choose List Denition Settings dialogue appears.
5. Enter Site Requests for the display name of the list denition.
6. Under What Is the Type of the List Denition, select Custom List.
7. Ensure Add a List Instance for This Denition is checked.
8. Click Finish. The list denition is created.
As with the site type list, you must rename the list instance and set the details of the instance:
1. In the Project Explorer, select the ListInstance1 folder beneath the Site Requests list
definition you just created.
2. Click the title to rename to New Site Requests.
3. Double-click the New Site Requests node to ...