Bagikan melalui


Configuration.EvaluationContext Properti

Definisi

ContextInformation Mendapatkan objek untuk Configuration objek .

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

Nilai Properti

Objek ContextInformation untuk Configuration objek .

Contoh

Contoh kode berikut menunjukkan cara menggunakan EvaluationContext properti .

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

Keterangan

Objek ContextInformation menyediakan konteks yang Configuration diperlukan agar objek merespons berdasarkan tempat objek dievaluasi.

Berlaku untuk

Lihat juga