TeamFoundationSqlResourceComponent.PrepareStoredProcedure 方法 (String, Boolean, Int32)

執行 SQL Server 預存程序的設定。 這個方法會關閉所有現有的命令或讀取器。

命名空間:  Microsoft.TeamFoundation.Framework.Server
組件:  Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)

語法

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

參數

  • storedProcedure
    類型:System.String
    這是執行預存程序
  • commandTimeout
    類型:System.Int32
    這可讓您覆寫這個預存程序執行逾時

傳回值

類型:System.Data.SqlClient.SqlCommand
初始化的 SqlCommand 物件

.NET Framework 安全性

請參閱

參考

TeamFoundationSqlResourceComponent 類別

PrepareStoredProcedure 多載

Microsoft.TeamFoundation.Framework.Server 命名空間