通过


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参数标识开关用来确定是否应写入跟踪的类型;例如,类的属性TraceSwitch的类型LevelTraceLevel

适用于