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
)
參數
- tracepoint
型別:System.Int32
- dataSource
型別:System.String
- database
型別:System.String
- operation
型別:System.String
- retries
型別:System.Int16
- success
型別:System.Boolean
- totalTime
型別:System.Int32
- connectTime
型別:System.Int32
- executionTime
型別:System.Int32
- waitTime
型別:System.Int32
- sqlErrorCode
型別:System.Int32
- sqlErrorMessage
型別:System.String
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。