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.

注解

@No__t-0 属性可以轻松确定 @no__t 的哪个版本。The CurrentConfiguration property makes it easy to determine which version of the .NET Framework.NET Framework is targeted. 顶层 @no__t 实例的 TargetFramework 属性指示目标框架版本。The TargetFramework property of the top-level Configuration instance indicates the targeted framework version.

适用于

另请参阅