Identifies the level type for a switch.
Assembly: System (in System.dll)
<[%$TOPIC/8h4k77hh_en-us_VS_110_2_0_0_0_0%]([%$TOPIC/8h4k77hh_en-us_VS_110_2_0_0_0_1%].Class)> _ Public NotInheritable Class SwitchLevelAttribute _ Inherits [%$TOPIC/8h4k77hh_en-us_VS_110_2_0_0_0_2%]
[[%$TOPIC/8h4k77hh_en-us_VS_110_2_0_1_0_0%]([%$TOPIC/8h4k77hh_en-us_VS_110_2_0_1_0_1%].Class)] public sealed class SwitchLevelAttribute : [%$TOPIC/8h4k77hh_en-us_VS_110_2_0_1_0_2%]
[[%$TOPIC/8h4k77hh_en-us_VS_110_2_0_2_0_0%]([%$TOPIC/8h4k77hh_en-us_VS_110_2_0_2_0_1%]::Class)] public ref class SwitchLevelAttribute sealed : public [%$TOPIC/8h4k77hh_en-us_VS_110_2_0_2_0_2%]
[<[%$TOPIC/8h4k77hh_en-us_VS_110_2_0_3_0_0%]>] [<[%$TOPIC/8h4k77hh_en-us_VS_110_2_0_3_0_1%]([%$TOPIC/8h4k77hh_en-us_VS_110_2_0_3_0_2%].Class)>] type SwitchLevelAttribute = class inherit [%$TOPIC/8h4k77hh_en-us_VS_110_2_0_3_0_3%] end
Thetype exposes the following members.
|SwitchLevelAttribute||Initializes a new instance of the class, specifying the type that determines whether a trace should be written.|
|Equals||Infrastructure. Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.)|
|GetHashCode||Returns the hash code for this instance. (Inherited from Attribute.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|IsDefaultAttribute||When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute.)|
|Match||When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|_AttributeGetIDsOfNames||Maps a set of names to a corresponding set of dispatch identifiers. (Inherited from Attribute.)|
|_AttributeGetTypeInfo||Retrieves the type information for an object, which can be used to get the type information for an interface. (Inherited from Attribute.)|
|_AttributeGetTypeInfoCount||Retrieves the number of type information interfaces that an object provides (either 0 or 1). (Inherited from Attribute.)|
|_AttributeInvoke||Provides access to properties and methods exposed by an object. (Inherited from Attribute.)|
This attribute is intended to be applied to all classes that inherit from the Switch class. The purpose of the attribute is to identify the type that specifies the switch criteria of the switch. Each switch determines whether a trace is to be written, based on whether an event type matches or exceeds the value of the SwitchLevelType property for the switch. The type used for the SwitchLevelType property varies for different switches. For example, the switch level type for the BooleanSwitch class is Boolean, and the switch level type for the TraceSwitch class is TraceLevel.