다음을 통해 공유


SPDatabase.Provision method (String, String, Dictionary<String, Boolean>)

NOTE: This API is now obsolete.

Creates a Microsoft SQL Server database with a user schema, creating the schema if necessary.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use SPDatabase.Provision method that takes Dictionary<SPDatabase.DatabaseOptions, bool> parameter")> _
Protected Shared Sub Provision ( _
    connectionString As String, _
    provisioningScriptPath As String, _
    options As Dictionary(Of String, Boolean) _
)
'Usage
Dim connectionString As String
Dim provisioningScriptPath As String
Dim options As Dictionary(Of String, Boolean)

SPDatabase.Provision(connectionString, _
    provisioningScriptPath, options)
[ObsoleteAttribute("Use SPDatabase.Provision method that takes Dictionary<SPDatabase.DatabaseOptions, bool> parameter")]
protected static void Provision(
    string connectionString,
    string provisioningScriptPath,
    Dictionary<string, bool> options
)

Parameters

  • connectionString
    Type: System.String

    A string that specifies the connection string that is used to connect to the database.

  • provisioningScriptPath
    Type: System.String

    A string that specifies the file system path of the provisioning script.

See also

Reference

SPDatabase class

SPDatabase members

Provision overload

Microsoft.SharePoint.Administration namespace