Search Results for

    Show / Hide Table of Contents

    Class ConditionalAttribute

    Indicates to compilers that a method call or attribute should be ignored unless a specified conditional compilation symbol is defined.

    Inheritance
    object
    Attribute
    ConditionalAttribute
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: System.Diagnostics
    Assembly: mscorlib.dll
    Syntax
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
    public sealed class ConditionalAttribute : Attribute

    Constructors

    ConditionalAttribute(string)

    Initializes a new instance of the ConditionalAttribute class.

    Declaration
    public ConditionalAttribute(string conditionString)
    Parameters
    Type Name Description
    string conditionString

    A string that specifies the case-sensitive conditional compilation symbol that is associated with the attribute.

    Properties

    ConditionString

    Gets the conditional compilation symbol that is associated with the ConditionalAttribute attribute.

    Declaration
    public string ConditionString { get; }
    Property Value
    Type Description
    string

    A string that specifies the case-sensitive conditional compilation symbol that is associated with the ConditionalAttribute attribute.

    Extension Methods

    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    In This Article
    Back to top Copyright © 2023 nanoFramework Contributors
    Generated by DocFX