Export (0) Print
Expand All

Configuration.TargetFramework Property

Specifies the targeted version of the .NET Framework when a version earlier than the current one is targeted.

Namespace:  System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

public FrameworkName TargetFramework { get; set; }

Property Value

Type: System.Runtime.Versioning.FrameworkName
The name of the targeted version of the .NET Framework. The default value is null, which indicates that the current version is targeted.

When the configuration system serializes a hierarchy of configuration objects to XML, it checks the value of this property. If the property is not null, the configuration system performs version checks for each configuration section group and configuration section. The configuration system also performs version checks for individual configuration properties that are marked as having changed across versions. (For more information, see ConfigurationPropertyOptions.) The configuration system also performs version checks for configuration elements in configuration sections.

If the value of this property is null, the configuration system does not perform any version checks during serialization.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft