Configuration.EvaluationContext Eigenschap

Definitie

Hiermee haalt u het ContextInformation object voor het Configuration object op.

public:
 property System::Configuration::ContextInformation ^ EvaluationContext { System::Configuration::ContextInformation ^ get(); };
public System.Configuration.ContextInformation EvaluationContext { get; }
member this.EvaluationContext : System.Configuration.ContextInformation
Public ReadOnly Property EvaluationContext As ContextInformation

Waarde van eigenschap

Het ContextInformation object voor het Configuration object.

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de EvaluationContext eigenschap gebruikt.

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

Opmerkingen

Een ContextInformation object biedt de context die Configuration een object nodig heeft om te reageren op basis van waar het wordt geƫvalueerd.

Van toepassing op

Zie ook