Partilhar via


SPWebApplicationBuilder.DatabaseServer Property

Gets or sets the database server name and instance 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 DatabaseServer As String
    Get
    Set
'Usage
Dim instance As SPWebApplicationBuilder
Dim value As String

value = instance.DatabaseServer

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

Property Value

Type: System.String
A string that contains the name of the database server.

Remarks

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

See Also

Reference

SPWebApplicationBuilder Class

SPWebApplicationBuilder Members

Microsoft.SharePoint.Administration Namespace