Freigeben über


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.Int32

    A unique number from a range reserved in TraceDefinition.cs that provides precise control over the trace level.

  • exception
    Type: System.Exception

    Details from the exception are extracted and traced.

.NET Framework Security

See Also

Reference

TeamFoundationSqlResourceComponent Class

Microsoft.TeamFoundation.Framework.Server Namespace