次の方法で共有


TeamFoundationSqlResourceComponent.PrepareSqlBatch メソッド (Int32, Boolean)

SQL ステートメントのバッチを実行するように設定します。 このメソッドは既存のすべてのコマンドまたはリーダーを閉じます。

名前空間:  Microsoft.TeamFoundation.Framework.Server
アセンブリ:  Microsoft.TeamFoundation.Framework.Server (Microsoft.TeamFoundation.Framework.Server.dll 内)

構文

'宣言
Protected Function PrepareSqlBatch ( _
    lengthEstimate As Integer, _
    bindPartitionId As Boolean _
) As SqlCommand
protected SqlCommand PrepareSqlBatch(
    int lengthEstimate,
    bool bindPartitionId
)

パラメーター

  • lengthEstimate
    型 : System.Int32
    実行する SQL ステートメントの文字数に最適な推測。厳密である必要はありません。
  • bindPartitionId
    型 : System.Boolean
    true の場合、現在のサービス ホスト パーティション ID は @partitionId にバインドされます

戻り値

型 : System.Data.SqlClient.SqlCommand
SqlCommand オブジェクトの初期化

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

TeamFoundationSqlResourceComponent クラス

PrepareSqlBatch オーバーロード

Microsoft.TeamFoundation.Framework.Server 名前空間