共用方式為


TeamFoundationTrace.IsTracing Method (String, TraceLevel)

Check to see whether tracing is enabled at the specified level for any of the keywords.

Namespace:  Microsoft.TeamFoundation
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

Syntax

'Declaration
Public Shared Function IsTracing ( _
    keyword As String, _
    traceLevel As TraceLevel _
) As Boolean
public static bool IsTracing(
    string keyword,
    TraceLevel traceLevel
)
public:
static bool IsTracing(
    String^ keyword, 
    TraceLevel traceLevel
)
static member IsTracing : 
        keyword:string * 
        traceLevel:TraceLevel -> bool
public static function IsTracing(
    keyword : String, 
    traceLevel : TraceLevel
) : boolean

Parameters

Return Value

Type: System.Boolean
True if tracing is enable for any of the keywords at the trace level

.NET Framework Security

See Also

Reference

TeamFoundationTrace Class

IsTracing Overload

Microsoft.TeamFoundation Namespace