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.

備註

@No__t-0 屬性可讓您輕鬆判斷哪個版本的 .NET Framework.NET Framework 是以為目標。The CurrentConfiguration property makes it easy to determine which version of the .NET Framework.NET Framework is targeted. 最上層 Configuration 實例的 TargetFramework 屬性工作表示目標 framework 版本。The TargetFramework property of the top-level Configuration instance indicates the targeted framework version.

適用於

另請參閱