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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱 從部分受信任程式碼使用程式庫。