Share via


SPWebApplicationBuilder.CreateNewDatabase property

Gets or sets a Boolean value that specifies whether to create a new content database for the Web application.

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

Syntax

'Declaration
Public Property CreateNewDatabase As Boolean
    Get
    Set
'Usage
Dim instance As SPWebApplicationBuilder
Dim value As Boolean

value = instance.CreateNewDatabase

instance.CreateNewDatabase = value
public bool CreateNewDatabase { get; set; }

Property value

Type: System.Boolean
true if a new content database should be created; otherwise, false. The default value is true.

Remarks

If you do not set the CreateNewDatabase property, the Web application will not contain any content until a new content database is created.

See also

Reference

SPWebApplicationBuilder class

SPWebApplicationBuilder members

Microsoft.SharePoint.Administration namespace