TeamFoundationSqlResourceComponent.PrepareSqlBatch, méthode (Int32, Boolean)

Installez pour exécuter une série d'instructions SQL. Cette méthode ferme toute la commande ou lecteur existante.

Espace de noms :  Microsoft.TeamFoundation.Framework.Server
Assembly :  Microsoft.TeamFoundation.Framework.Server (dans Microsoft.TeamFoundation.Framework.Server.dll)

Syntaxe

'Déclaration
Protected Function PrepareSqlBatch ( _
    lengthEstimate As Integer, _
    bindPartitionId As Boolean _
) As SqlCommand
protected SqlCommand PrepareSqlBatch(
    int lengthEstimate,
    bool bindPartitionId
)

Paramètres

  • lengthEstimate
    Type : System.Int32
    La meilleure idée du nombre de caractères des instructions SQL à exécuter.Ne doit pas être exact.
  • bindPartitionId
    Type : System.Boolean
    Si la valeur true est affectée, l'ID de partition actuel Hôte de service est lié au @partitionId

Valeur de retour

Type : System.Data.SqlClient.SqlCommand
L'objet de SqlCommand qui est initialisé

Sécurité .NET Framework

Voir aussi

Référence

TeamFoundationSqlResourceComponent Classe

PrepareSqlBatch, surcharge

Microsoft.TeamFoundation.Framework.Server, espace de noms