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
keyword
Type: System.StringOne or more keywords
traceLevel
Type: System.Diagnostics.TraceLevelTrace level
Return Value
Type: System.Boolean
True if tracing is enable for any of the keywords at the trace level
.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.