TeamFoundationTrace.IsTracing Method (TraceType, TraceLevel)
Checks whether tracing is enabled at the specified level for the specified category.
Namespace: Microsoft.TeamFoundation
Assembly: Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
‘선언
Public Shared Function IsTracing ( _
traceCategory As TraceType, _
level As TraceLevel _
) As Boolean
public static bool IsTracing(
TraceType traceCategory,
TraceLevel level
)
public:
static bool IsTracing(
TraceType traceCategory,
TraceLevel level
)
static member IsTracing :
traceCategory:TraceType *
level:TraceLevel -> bool
public static function IsTracing(
traceCategory : TraceType,
level : TraceLevel
) : boolean
Parameters
- traceCategory
Type: Microsoft.TeamFoundation.TraceType
The trace category that will be checked.
- level
Type: System.Diagnostics.TraceLevel
The level to check whether tracing is enabled.
Return Value
Type: System.Boolean
Returns Boolean.
.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.