共用方式為


TeamFoundationRequestContext.TraceSql 方法

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

語法

'宣告
Public Overridable Sub TraceSql ( _
    tracepoint As Integer, _
    dataSource As String, _
    database As String, _
    operation As String, _
    retries As Short, _
    success As Boolean, _
    totalTime As Integer, _
    connectTime As Integer, _
    executionTime As Integer, _
    waitTime As Integer, _
    sqlErrorCode As Integer, _
    sqlErrorMessage As String _
)
public virtual void TraceSql(
    int tracepoint,
    string dataSource,
    string database,
    string operation,
    short retries,
    bool success,
    int totalTime,
    int connectTime,
    int executionTime,
    int waitTime,
    int sqlErrorCode,
    string sqlErrorMessage
)

參數

.NET Framework 安全性

請參閱

參考

TeamFoundationRequestContext 類別

Microsoft.TeamFoundation.Framework.Server 命名空間