TeamFoundationSqlResourceComponent.PrepareSqlBatch 方法 (Int32)

设置执行批处理 SQL 语句。 此方法将关闭所有现有命令或读取器。

命名空间:  Microsoft.TeamFoundation.Framework.Server
程序集:  Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)

语法

声明
Protected Overridable Function PrepareSqlBatch ( _
    lengthEstimate As Integer _
) As SqlCommand
protected virtual SqlCommand PrepareSqlBatch(
    int lengthEstimate
)

参数

  • lengthEstimate
    类型:System.Int32
    字符数的最佳并在要执行的 SQL 语句。不必完全相同。

返回值

类型:System.Data.SqlClient.SqlCommand
初始化的 SqlCommand 对象。

.NET Framework 安全性

请参阅

参考

TeamFoundationSqlResourceComponent 类

PrepareSqlBatch 重载

Microsoft.TeamFoundation.Framework.Server 命名空间