SwitchLevelAttribute(Type) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化类的新实例 SwitchLevelAttribute ,指定确定是否应写入跟踪的类型。
public:
SwitchLevelAttribute(Type ^ switchLevelType);
public SwitchLevelAttribute(Type switchLevelType);
new System.Diagnostics.SwitchLevelAttribute : Type -> System.Diagnostics.SwitchLevelAttribute
Public Sub New (switchLevelType As Type)
参数
注解
该switchLevelType参数标识开关用来确定是否应写入跟踪的类型;例如,类的属性TraceSwitch的类型Level为 TraceLevel。