Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
General Reference
Reference
Protocols
 SiteProvision Method

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
SiteProvision Method

Requests that Windows SharePoint Services add the default set of lists to an existing Web site. The set of SharePoint lists is specified in the Onet.xml file, which resides on the Web server running Windows SharePoint Services.

<Method ID="Text">
  <SetVar Name="Cmd">SiteProvision</SetVar>
  <SetVar Name="CreateLists">[True|False]</SetVar>
  <SetVar Name="SiteTemplate">Text</SetVar>
</Method>

Parameters

Parameter Description

ID = "Text"

Application-specific string. In an HTML editor compatible with Microsoft Windows SharePoint Services, such as Microsoft Office SharePoint Designer 2007, the string provides the sequence number and name of the method.

Name = "Cmd"

Must be set to SiteProvision.

Name = "CreateLists"

Boolean. TRUE to create the default types of SharePoint lists as specified in the Onet.xml file residing on the server; otherwise, FALSE.

Name = "SiteTemplate"

Text. Specifies the site definition configuration to use to instantiate the site. If not specified, by default Windows SharePoint Services creates the site by using the standard Team Site configuration. The following site definition configurations are included by default in an installation of Windows SharePoint Services.

  • STS#0   Team Site

  • STS#1   Blank Site

  • STS#2   Document Workspace

  • MPS#0   Basic Meeting Workspace

  • MPS#1   Blank Meeting Workspace

  • MPS#2   Decision Meeting Workspace

  • MPS#3   Social Meeting Workspace

  • MPS#4   Multipage Meeting Workspace

  • WIKI#0   Wiki

  • BLOG#0   Blog

Xml
<ows:Batch OnError="Return">
  <Method ID="0,SiteProvision">
    <SetVar Name="Cmd">SiteProvision</SetVar>
    <SetVar Name="CreateLists">True</SetVar>
    <SetVar Name="SiteTemplate">STS#0</SetVar>
  </Method>
</ows:Batch>

Success

Returns the code attribute, which is a signed-decimal representation of an HRESULT.

Error

Returns an XML-encoded Unicode (UTF-8) text string. For more information, see Error Message Format for Windows SharePoint Services.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker