SourceSwitch.Level Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru