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