共用方式為


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

NOTE: This API is now obsolete.

準備Microsoft SQL Server資料庫Microsoft SharePoint Foundation搭配使用。如果資料庫不存在則會建立。如果資料庫存在之前先呼叫此方法,將佈建使用 SharePoint 的結構描述。

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 SqlConnectionStringBuilder, _
    provisioningScriptPath As String, _
    options As Dictionary(Of String, Boolean) _
)
'用途
Dim connectionString As SqlConnectionStringBuilder
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(
    SqlConnectionStringBuilder connectionString,
    string provisioningScriptPath,
    Dictionary<string, bool> options
)

參數

  • provisioningScriptPath
    Type: System.String

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

請參閱

參照

SPDatabase class

SPDatabase members

Provision overload

Microsoft.SharePoint.Administration namespace