Configuration.EvaluationContext Özellik

Tanım

Nesnenin ContextInformation nesnesini Configuration alır.

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

Özellik Değeri

ContextInformation

ContextInformation Nesnenin Configuration nesnesi.

Örnekler

Aşağıdaki kod örneği özelliğinin nasıl kullanılacağını EvaluationContext gösterir.

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

Açıklamalar

Nesne ContextInformation , bir Configuration nesnenin değerlendirildiği yere göre yanıt vermesi için gereken bağlamı sağlar.

Şunlara uygulanır

Ayrıca bkz.