Поделиться через


TeamFoundationSqlResourceComponent.Trace Method (Int32, TraceLevel, array<String[], String, array<Object )

Push trace messages to the trace service associated with the request context.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Protected Overridable Sub Trace ( _
    tracepoint As Integer, _
    level As TraceLevel, _
    tags As String(), _
    format As String, _
    ParamArray args As Object() _
)
protected virtual void Trace(
    int tracepoint,
    TraceLevel level,
    string[] tags,
    string format,
    params Object[] args
)
protected:
virtual void Trace(
    int tracepoint, 
    TraceLevel level, 
    array<String^>^ tags, 
    String^ format, 
    ... array<Object^>^ args
)
abstract Trace : 
        tracepoint:int * 
        level:TraceLevel * 
        tags:string[] * 
        format:string * 
        args:Object[] -> unit  
override Trace : 
        tracepoint:int * 
        level:TraceLevel * 
        tags:string[] * 
        format:string * 
        args:Object[] -> unit
protected function Trace(
    tracepoint : int, 
    level : TraceLevel, 
    tags : String[], 
    format : String, 
    ... args : Object[]
)

Parameters

  • tracepoint
    Type: System.Int32

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

  • tags
    Type: array<System.String[]

    One or more tags associated with this trace event.

  • format
    Type: System.String

    A format string that is the trace message.

  • args
    Type: array<System.Object[]

    Arguments for the format string.

.NET Framework Security

See Also

Reference

TeamFoundationSqlResourceComponent Class

Trace Overload

Microsoft.TeamFoundation.Framework.Server Namespace