Partilhar via


SPDatabase.DatabaseConnectionString Property

Gets the connection string that is used to connect to the database.

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

Syntax

'Declaration
Public ReadOnly Property DatabaseConnectionString As String
    Get
'Usage
Dim instance As SPDatabase
Dim value As String

value = instance.DatabaseConnectionString
public string DatabaseConnectionString { get; }

Property Value

Type: System.String
A string that contains the connection string.

See Also

Reference

SPDatabase Class

SPDatabase Members

Microsoft.SharePoint.Administration Namespace