Share via


SPWebApplicationBuilder.DatabasePassword Property

Gets or sets the SQL authentication password to be used for a new content database.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property DatabasePassword As String
    Get
    Set
'Usage
Dim instance As SPWebApplicationBuilder
Dim value As String

value = instance.DatabasePassword

instance.DatabasePassword = value
public string DatabasePassword { get; set; }

Property Value

Type: System.String
A string that contains the database password.

Remarks

If the CreateNewDatabase property equals false, the value contained by the DatabasePassword property is ignored.

The DatabasePassword property must not equal a null reference (Nothing in Visual Basic) if the DatabaseUsername is set.

See Also

Reference

SPWebApplicationBuilder Class

SPWebApplicationBuilder Members

Microsoft.SharePoint.Administration Namespace