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 會識別參數用來判斷是否應該寫入追蹤的類型 Level ;例如,類別的 TraceSwitch 屬性類型為 TraceLevel

適用於