Markers.IsEnabled 方法 (Importance, Int32)
決定任何工作階段是否已啟用標記 ETW 提供者,以指定的重要性層級和類別。
命名空間: Microsoft.ConcurrencyVisualizer.Instrumentation
組件: Microsoft.ConcurrencyVisualizer.Markers (在 Microsoft.ConcurrencyVisualizer.Markers.dll 中)
語法
'宣告
Public Shared Function IsEnabled ( _
level As Importance, _
category As Integer _
) As Boolean
public static bool IsEnabled(
Importance level,
int category
)
public:
static bool IsEnabled(
Importance level,
int category
)
static member IsEnabled :
level:Importance *
category:int -> bool
public static function IsEnabled(
level : Importance,
category : int
) : boolean
參數
- level
型別:Microsoft.ConcurrencyVisualizer.Instrumentation.Importance
提供者的重要性。
- category
型別:System.Int32
範圍的類別。任何整數是有效的。
傳回值
型別:System.Boolean
true 表示已啟用工作階段。 否則, false。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。