共用方式為


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

NOTE: This API is now obsolete.

使用使用者的結構描述,建立結構描述,必要時,會建立Microsoft SQL Server資料庫。

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

Syntax

'宣告
<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) _
)
'用途
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
)

參數

  • connectionString
    Type: System.String

    字串,指定用來連線至資料庫的連線字串。

  • provisioningScriptPath
    Type: System.String

    指定佈建的指令碼檔案系統路徑的字串。

請參閱

參照

SPDatabase class

SPDatabase members

Provision overload

Microsoft.SharePoint.Administration namespace