ConfigurationElement.EvaluationContext Özellik
Tanım
ContextInformationNesne için nesneyi alır ConfigurationElement .Gets the ContextInformation object for the ConfigurationElement object.
protected:
property System::Configuration::ContextInformation ^ EvaluationContext { System::Configuration::ContextInformation ^ get(); };
protected System.Configuration.ContextInformation EvaluationContext { get; }
member this.EvaluationContext : System.Configuration.ContextInformation
Protected ReadOnly Property EvaluationContext As ContextInformation
Özellik Değeri
ContextInformationİçin ConfigurationElement .The ContextInformation for the ConfigurationElement.
Özel durumlar
Geçerli öğe bir bağlam ile ilişkilendirilmemiş.The current element is not associated with a context.
Açıklamalar
Bir nesnesi ContextInformation , ConfigurationElement değerlendirilmekte olduğu yere göre kararlar almak için gerekli olan bağlamı sağlar.A ContextInformation object provides the context necessary for a ConfigurationElement object to make decisions based upon where it is being evaluated.
ContextInformationNesnesi, yapılandırmanın bir öğesiyle ilişkili ortam ayrıntılarını sağlar.The ContextInformation object provides environment details related to an element of the configuration. Örneğin, IsMachineLevel Machine.config ' de ayarlanmış olup olmadığını anlamak için özelliğini kullanabilir ConfigurationElement veya özelliğini kullanarak bir öğenin hangi hiyerarşiye ait olduğunu belirleyebilirsiniz ConfigurationElement HostingContext .For example, you can use the IsMachineLevel property to determine whether a ConfigurationElement was set in Machine.config, or you can determine which hierarchy a ConfigurationElement element belongs to by using the HostingContext property.