WebCollection.Add method

Adds a new Web site to the collection.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

public Web Add(
	WebCreationInformation parameters
)

Parameters

parameters
Type: Microsoft.SharePoint.Client.WebCreationInformation

A [Microsoft.SharePoint.Client.WebCreationInformation] object that contains information associated with the Web site.

It must not be a null reference (Nothing in Visual Basic).

Return value

Type: Microsoft.SharePoint.Client.Web
A Web object that represents the new Web site.

ExceptionCondition
SPException

The URL specified in parameters is already in use. Error code: -2147024713.

Show: