ConfigurationElement.EvaluationContext Property

Note: This property is new in the .NET Framework version 2.0.

Gets the ContextInformation object for the ConfigurationElement object.

Namespace: System.Configuration
Assembly: System.Configuration (in system.configuration.dll)

protected ContextInformation EvaluationContext { get; 
/** @property */
protected ContextInformation get_EvaluationContext ()

protected function get EvaluationContext () : ContextInformation

Property Value

The ContextInformation object for the ConfigurationElement object.

A ContextInformation object provides the context necessary for a ConfigurationElement object to make decisions based upon where it is being evaluated.

The ContextInformation object provides environment details related to an element of the configuration. For instance, you can use the IsMachineLevel property to determine whether a ConfigurationElement was set in Machine.config, or you can determine which hierarchy a ConfigurationElement element belongs to by using the HostingContext property.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0