共用方式為


SPDatabase.LegacyDatabaseConnectionString Property

Gets a string that contains the OLEDB connection string.

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

Syntax

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

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

Property Value

Type: System.String
String
The connection string that is used to connect to the database.

See Also

Reference

SPDatabase Class

SPDatabase Members

Microsoft.SharePoint.Administration Namespace