ConfigurationElement.CurrentConfiguration ConfigurationElement.CurrentConfiguration ConfigurationElement.CurrentConfiguration ConfigurationElement.CurrentConfiguration Property

定义

获取对顶级 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.NET Framework目标版本。The CurrentConfiguration property makes it easy to determine which version of the .NET Framework.NET Framework is targeted. TargetFramework 顶级Configuration实例的属性指示目标框架版本。The TargetFramework property of the top-level Configuration instance indicates the targeted framework version.

适用于

另请参阅