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)
Available in Sandboxed Solutions: No

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