Configuration.EvaluationContext Property

 

Gets the ContextInformation object for the Configuration object.

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

Public ReadOnly Property EvaluationContext As ContextInformation

Property Value

Type: System.Configuration.ContextInformation

The ContextInformation object for the Configuration object.

A ContextInformation object provides the context necessary for a Configuration object to respond based upon where it is being evaluated.

The following code example demonstrates how to use the EvaluationContext property.

Dim evalContext As ContextInformation = TryCast(config.EvaluationContext, ContextInformation)
Console.WriteLine("Machine level: {0}", evalContext.IsMachineLevel.ToString())

.NET Framework
Available since 2.0
Return to top
Show: