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
connectionString
Type: System.StringA connection string.
options
Type: Microsoft.SharePoint.Administration.SPDatabaseParameterOptionsAn object specifying certain options.
Return Value
Type: Microsoft.SharePoint.Administration.SPDatabaseParameters
The new database parameters object.