ConfigurationElement.CurrentConfiguration 屬性

定義

取得最上層 Configuration 執行個體的參考,這個執行個體表示目前 ConfigurationElement 執行個體所屬的組態階層架構。

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 執行個體。

備註

屬性CurrentConfiguration可讓您輕鬆地判斷目標 .NET Framework 版本。 TargetFramework最上層Configuration實例的 屬性表示目標架構版本。

適用於

另請參閱