共用方式為


SPDatabaseParameters.FromConnectionString Method

Creates a new database parameters object using the specified database connection string.

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

Syntax

'Declaration
Public Shared Function FromConnectionString ( _
    connectionString As String, _
    options As SPDatabaseParameterOptions _
) As SPDatabaseParameters
'Usage
Dim connectionString As String
Dim options As SPDatabaseParameterOptions
Dim returnValue As SPDatabaseParameters

returnValue = SPDatabaseParameters.FromConnectionString(connectionString, _
    options)
public static SPDatabaseParameters FromConnectionString(
    string connectionString,
    SPDatabaseParameterOptions options
)

Parameters

Return Value

Type: Microsoft.SharePoint.Administration.SPDatabaseParameters
The new database parameters object.

See Also

Reference

SPDatabaseParameters Class

SPDatabaseParameters Members

Microsoft.SharePoint.Administration Namespace