ConfigurationElement.CurrentConfiguration 属性
定义
获取对顶级 Configuration 实例的引用,该实例表示当前 ConfigurationElement 实例所属的配置层次结构。Gets a reference to the top-level Configuration instance that represents the configuration hierarchy that the current ConfigurationElement instance belongs to.
public:
property System::Configuration::Configuration ^ CurrentConfiguration { System::Configuration::Configuration ^ get(); };
public System.Configuration.Configuration CurrentConfiguration { get; }
member this.CurrentConfiguration : System.Configuration.Configuration
Public ReadOnly Property CurrentConfiguration As Configuration
属性值
当前 Configuration 实例所属的顶级 ConfigurationElement 实例。The top-level Configuration instance that the current ConfigurationElement instance belongs to.
注解
CurrentConfiguration利用属性,可以轻松确定要作为 .NET Framework 的哪个版本。The CurrentConfiguration property makes it easy to determine which version of the .NET Framework is targeted. TargetFramework顶级实例的属性 Configuration 指示目标框架版本。The TargetFramework property of the top-level Configuration instance indicates the targeted framework version.