Share via


TeamFoundationSqlResourceComponent.PrepareStoredProcedure-Methode (String, Boolean, Int32)

Installieren Sie, um eine gespeicherte SQL Server-Prozedur auszuführen. Diese Methode schließt alle vorhandenen Befehl oder Reader.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Protected Function PrepareStoredProcedure ( _
    storedProcedure As String, _
    bindPartitionId As Boolean, _
    commandTimeout As Integer _
) As SqlCommand
protected SqlCommand PrepareStoredProcedure(
    string storedProcedure,
    bool bindPartitionId,
    int commandTimeout
)

Parameter

  • storedProcedure
    Typ: System.String
    Dies ist die gespeicherte Prozedur auszuführen,
  • commandTimeout
    Typ: System.Int32
    So können Sie das Timeout für diese Ausführung der gespeicherten Prozedur überschreiben

Rückgabewert

Typ: System.Data.SqlClient.SqlCommand
Das SqlCommand-Objekt, das initialisiert wird

.NET Framework-Sicherheit

Siehe auch

Referenz

TeamFoundationSqlResourceComponent Klasse

PrepareStoredProcedure-Überladung

Microsoft.TeamFoundation.Framework.Server-Namespace