System.Diagnostics.SwitchAttribute Class

Identifies a switch used in an assembly, class, or member.

See Also: SwitchAttribute Members


[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.Event | System.AttributeTargets.All)]
[System.MonoLimitation("This attribute is not considered in trace support.")]
public sealed class SwitchAttribute : Attribute


A System.Diagnostics.SwitchAttribute attribute can be used on an assembly, class, constructor, method, property, or event.

The System.Diagnostics.SwitchAttribute attribute can be used by tools that inspect an assembly for configuration settings.


Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions:,