SPDatabase.Provision 方法 (SqlConnectionStringBuilder, TextReader, Dictionary<String, Boolean>)

请注意:此 API 现在已过时。

创建一个Microsoft SQL Server为数据库用户架构,如有必要,请创建架构

命名空间:  Microsoft.SharePoint.Administration
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
<ObsoleteAttribute("Use SPDatabase.Provision method that takes Dictionary<SPDatabase.DatabaseOptions, bool> parameter")> _
Protected Shared Sub Provision ( _
    connectionString As SqlConnectionStringBuilder, _
    provisioningScriptStream As TextReader, _
    options As Dictionary(Of String, Boolean) _
)
用法
Dim connectionString As SqlConnectionStringBuilder
Dim provisioningScriptStream As TextReader
Dim options As Dictionary(Of String, Boolean)

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

参数

  • provisioningScriptStream
    类型:System.IO.TextReader

    指定的自动配置脚本流的TextReader对象。

另请参阅

引用

SPDatabase 类

SPDatabase 成员

Provision 重载

Microsoft.SharePoint.Administration 命名空间