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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應