Configuration.TargetFramework Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the targeted version of .NET when a version earlier than the current one is targeted.
public:
property System::Runtime::Versioning::FrameworkName ^ TargetFramework { System::Runtime::Versioning::FrameworkName ^ get(); void set(System::Runtime::Versioning::FrameworkName ^ value); };
public System.Runtime.Versioning.FrameworkName TargetFramework { get; set; }
member this.TargetFramework : System.Runtime.Versioning.FrameworkName with get, set
Public Property TargetFramework As FrameworkName
Property Value
The name of the targeted version of .NET. The default value is null
, which indicates that the current version is targeted.
Remarks
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.
Applies to
See also
.NET