Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
Platform
Reference
Web Services
Methods
 CreateSite Method
CreateSite Method

The CreateSite method of the Administration service creates a site collection.

Parameters

Url   A string that contains the absolute URL of the site collection.

Title   A string that contains the display name of the site collection.

Description   A string that contains a description for the site collection.

Lcid   An integer that specifies the locale identifier (LCID) for the site collection.

WebTemplate   A string that contains the name of the site template to use for creating the site collection. The following table shows the values for the default site definitions included in an installation of Windows SharePoint Services.

ValueSite Definition
STS#0Team Site
STS#1Blank Site
STS#2Document Workspace
MPS#0Basic Meeting Workspace
MPS#1Blank Meeting Workspace
MPS#2Decision Meeting Workspace
MPS#3Social Meeting Workspace
MPS#4Multipage Meeting Workspace

OwnerLogin   A string that contains the user name (DOMAIN\User_Alias) of the owner.

OwnerName   A string that contains the display name of the owner.

OwnerEmail   A string that contains the e-mail address of the owner.

PortalUrl   A string that contains the URL of a portal for the site collection.

PortalName   A string that contains the name of a portal for the site collection.

Return Value

A string that contains the URL of the new site collection.

Remarks

The account that executes a request implementing this method must be a member of either the local administrators group on the server or the Microsoft Windows NT security group account that is identified as the SharePoint Administrator Group Account.

Example

The following code example creates a new site collection on the specified server.

Requirements

Platforms: Microsoft Windows Server 2003

Web Reference: http://Virtual_Server_Name:Port_Number/_vti_adm/Admin.asmx

© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker