Share via


SPWebApplicationBuilder.DatabaseUsername Property

Gets or sets the SQL authentication user name 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 DatabaseUsername As String
    Get
    Set
'Usage
Dim instance As SPWebApplicationBuilder
Dim value As String

value = instance.DatabaseUsername

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

Property Value

Type: System.String

Remarks

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

If the DatabaseUsername property contains a null reference (Nothing in Visual Basic) or an empty string, NT LAN Manager (NTLM) is used to connect to the SQL database.

See Also

Reference

SPWebApplicationBuilder Class

SPWebApplicationBuilder Members

Microsoft.SharePoint.Administration Namespace