ConfigurationElement.EvaluationContext プロパティ

定義

ContextInformation オブジェクトの ConfigurationElement オブジェクトを取得します。

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使用して、 がMachine.configで設定されたかどうかをConfigurationElement判断したり、 プロパティを使用HostingContextして要素が属する階層ConfigurationElementを特定したりできます。

適用対象

こちらもご覧ください