共用方式為


SPDatabaseParameters.CreateParameters Method (String, SPDatabaseParameterOptions)

Creates a new database parameters object by using the specified parameters.

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

Syntax

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

returnValue = SPDatabaseParameters.CreateParameters(initialCatalog, _
    options)
public static SPDatabaseParameters CreateParameters(
    string initialCatalog,
    SPDatabaseParameterOptions options
)

Parameters

  • initialCatalog
    Type: System.String

    The catalog or database name to use for the database connection.

Return Value

Type: Microsoft.SharePoint.Administration.SPDatabaseParameters
Returns the new SPDatabaseParameters object.

See Also

Reference

SPDatabaseParameters Class

SPDatabaseParameters Members

CreateParameters Overload

Microsoft.SharePoint.Administration Namespace