Search Results for

    Show / Hide Table of Contents

    Class TargetFrameworkAttribute

    Identifies the version of the .NET Framework that a particular assembly was compiled against.

    Inheritance
    object
    Attribute
    TargetFrameworkAttribute
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: System.Runtime.Versioning
    Assembly: mscorlib.dll
    Syntax
    [AttributeUsage(AttributeTargets.Assembly)]
    public sealed class TargetFrameworkAttribute : Attribute

    Constructors

    TargetFrameworkAttribute(string)

    Initializes an instance of the TargetFrameworkAttribute class by specifying the .NET Framework version against which an assembly was built.

    Declaration
    public TargetFrameworkAttribute(string frameworkName)
    Parameters
    Type Name Description
    string frameworkName

    The version of the .NET Framework against which the assembly was built.

    Exceptions
    Type Condition
    ArgumentNullException

    Properties

    FrameworkDisplayName

    Gets the display name of the .NET Framework version against which an assembly was built.

    Declaration
    public string FrameworkDisplayName { get; set; }
    Property Value
    Type Description
    string

    The display name of the .NET Framework version.

    FrameworkName

    Gets the name of the .NET Framework version against which a particular assembly was compiled.

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

    The name of the .NET Framework version with which the assembly was compiled.

    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