TeamFoundationSqlResourceComponent.PrepareStoredProcedure, méthode (String, Boolean, Int32)

Installez pour exécuter une procédure stockée SQL Server. 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 PrepareStoredProcedure ( _
    storedProcedure As String, _
    bindPartitionId As Boolean, _
    commandTimeout As Integer _
) As SqlCommand
protected SqlCommand PrepareStoredProcedure(
    string storedProcedure,
    bool bindPartitionId,
    int commandTimeout
)

Paramètres

  • storedProcedure
    Type : System.String
    Il s'agit de la procédure stockée à exécuter
  • commandTimeout
    Type : System.Int32
    Cela vous permet de substituer le délai d'expiration pour cette exécution de procédure stockée

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

PrepareStoredProcedure, surcharge

Microsoft.TeamFoundation.Framework.Server, espace de noms