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
)
參數
connectionString
Type: System.Data.SqlClient.SqlConnectionStringBuilderSqlConnectionStringBuilder物件,其中包含用來連線至資料庫的連線字串。
provisioningScriptPath
Type: System.String內含佈建的指令碼的檔案系統路徑的字串。
options
Type: System.Collections.Generic.Dictionary<String, Boolean>指定要使用的 SQL 資料庫選項中建立資料庫Dictionary物件。請參閱 < SPDatabase.DatabaseOptions的可能值。