ConfigurationElement.EvaluationContext 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得 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
屬性值
ContextInformation 的 ConfigurationElement。
例外狀況
目前的項目與內容沒有關聯。
備註
ContextInformation物件會提供對象根據評估位置做出決策所需的ConfigurationElement內容。
物件 ContextInformation 提供與組態專案相關的環境詳細數據。 例如,您可以使用 IsMachineLevel 屬性來判斷 ConfigurationElement 是否已在 Machine.config 中設定 ,或者您可以使用 屬性來判斷專案所屬HostingContext的階層ConfigurationElement。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應