Configuration.EvaluationContext 속성

정의

ContextInformation 개체의 Configuration 개체를 가져옵니다.

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

속성 값

ContextInformation 개체의 Configuration 개체입니다.

예제

다음 코드 예제를 사용 하는 방법에 설명 합니다 EvaluationContext 속성입니다.

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())

설명

개체는 ContextInformation 평가되는 위치에 따라 개체가 Configuration 응답하는 데 필요한 컨텍스트를 제공합니다.

적용 대상

추가 정보