ConditionalAttribute Class
Indicates to compilers that a particular method is callable if a specified preprocessing identifier is applied to that method.
Namespace: System.Diagnostics
Assembly: mscorlib (in mscorlib.dll)
Syntax
[AttributeUsageAttribute]
[SerializableAttribute]
public sealed class ConditionalAttribute : Attribute
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.