ConfigurationElement.EvaluationContext プロパティ

定義

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

C#
protected System.Configuration.ContextInformation EvaluationContext { get; }

プロパティ値

ContextInformationConfigurationElement

例外

現在の要素はコンテキストに関連付けられていません。

注釈

オブジェクトは ContextInformation 、オブジェクトが評価される場所に基づいて決定を行うために必要な ConfigurationElement コンテキストを提供します。

オブジェクトは ContextInformation 、構成の要素に関連する環境の詳細を提供します。 たとえば、 プロパティを IsMachineLevel 使用して、 が Machine.config に設定されたかどうかを ConfigurationElement 判断したり、 プロパティを使用して要素が属する階層 ConfigurationElementHostingContext 特定したりできます。

適用対象

製品 バージョン
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

こちらもご覧ください