System.Diagnostics.SwitchAttribute Class

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

See Also: SwitchAttribute Members

Syntax

[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

Remarks

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.

Requirements

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