TeamFoundationSqlResourceComponent.TraceException Method
Report an exception at TraceLevel.Error to the trace log in a consistent way.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Protected Overridable Sub TraceException ( _
tracepoint As Integer, _
exception As Exception, _
level As TraceLevel _
)
protected virtual void TraceException(
int tracepoint,
Exception exception,
TraceLevel level
)
protected:
virtual void TraceException(
int tracepoint,
Exception^ exception,
TraceLevel level
)
abstract TraceException :
tracepoint:int *
exception:Exception *
level:TraceLevel -> unit
override TraceException :
tracepoint:int *
exception:Exception *
level:TraceLevel -> unit
protected function TraceException(
tracepoint : int,
exception : Exception,
level : TraceLevel
)
Parameters
tracepoint
Type: System.Int32A unique number from a range reserved in TraceDefinition.cs that provides precise control over the trace level.
exception
Type: System.ExceptionDetails from the exception are extracted and traced.
- level
Type: System.Diagnostics.TraceLevel
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.