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指定佈建的指令碼檔案系統路徑的字串。
options
Type: System.Collections.Generic.Dictionary<String, Boolean>指定要使用的 SQL 資料庫選項中建立資料庫Dictionary物件。請參閱 < SPDatabase.DatabaseOptions的可能值。