共用方式為


SwitchLevelAttribute(Type) 建構函式

定義

初始化該類別的新實例 SwitchLevelAttribute ,指定判斷是否應寫入追蹤的型別。

public:
 SwitchLevelAttribute(Type ^ switchLevelType);
public SwitchLevelAttribute(Type switchLevelType);
new System.Diagnostics.SwitchLevelAttribute : Type -> System.Diagnostics.SwitchLevelAttribute
Public Sub New (switchLevelType As Type)

參數

switchLevelType
Type

Type 決定了是否應該寫入追蹤。

備註

參數switchLevelType用來識別交換器用來判斷是否應該寫入追蹤的類型;例如,類別屬性LevelTraceSwitch的類型為 TraceLevel

適用於