ConfigurationElement.EvaluationContext 屬性

定義

取得 ConfigurationElement 物件的 ContextInformation 物件。

protected:
 property System::Configuration::ContextInformation ^ EvaluationContext { System::Configuration::ContextInformation ^ get(); };
protected System.Configuration.ContextInformation EvaluationContext { get; }
member this.EvaluationContext : System.Configuration.ContextInformation
Protected ReadOnly Property EvaluationContext As ContextInformation

屬性值

ContextInformationConfigurationElement

例外狀況

目前的項目與內容沒有關聯。

備註

ContextInformation物件會提供對象根據評估位置做出決策所需的ConfigurationElement內容。

物件 ContextInformation 提供與組態專案相關的環境詳細數據。 例如,您可以使用 IsMachineLevel 屬性來判斷 ConfigurationElement 是否已在 Machine.config 中設定 ,或者您可以使用 屬性來判斷專案所屬HostingContext的階層ConfigurationElement

適用於

另請參閱