Breyta

Deila með


SourceSwitch.Level Property

Definition

Gets or sets the level of the switch.

public:
 property System::Diagnostics::SourceLevels Level { System::Diagnostics::SourceLevels get(); void set(System::Diagnostics::SourceLevels value); };
public System.Diagnostics.SourceLevels Level { get; set; }
member this.Level : System.Diagnostics.SourceLevels with get, set
Public Property Level As SourceLevels

Property Value

One of the SourceLevels values that represents the event level of the switch.

Examples

The following code example displays the value of the Level property for a source switch. This code example is part of a larger example provided for the TraceSource class.

Console.WriteLine(sourceSwitch.Level);
Console.WriteLine(sourceSwitch.Level)

Remarks

This property gets its value from the SwitchSetting property. Setting this property also modifies the SwitchSetting property.

Note

For extensibility, the Level property can be set to any integer, rather than being limited to a SourceLevels enumeration value.

Applies to