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.
Value | Site Definition |
---|---|
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 |
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