ConfigurationSection.ShouldSerializePropertyInTargetVersion Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
yapılandırma nesnesi hiyerarşisi .NET Framework'ün belirtilen hedef sürümü için seri hale getirildiğinde belirtilen özelliğin seri hale getirilip getirilmeyeceğini gösterir.
protected public:
virtual bool ShouldSerializePropertyInTargetVersion(System::Configuration::ConfigurationProperty ^ property, System::String ^ propertyName, System::Runtime::Versioning::FrameworkName ^ targetFramework, System::Configuration::ConfigurationElement ^ parentConfigurationElement);
protected:
virtual bool ShouldSerializePropertyInTargetVersion(System::Configuration::ConfigurationProperty ^ property, System::String ^ propertyName, System::Runtime::Versioning::FrameworkName ^ targetFramework, System::Configuration::ConfigurationElement ^ parentConfigurationElement);
protected internal virtual bool ShouldSerializePropertyInTargetVersion(System.Configuration.ConfigurationProperty property, string propertyName, System.Runtime.Versioning.FrameworkName targetFramework, System.Configuration.ConfigurationElement parentConfigurationElement);
protected virtual bool ShouldSerializePropertyInTargetVersion(System.Configuration.ConfigurationProperty property, string propertyName, System.Runtime.Versioning.FrameworkName targetFramework, System.Configuration.ConfigurationElement parentConfigurationElement);
abstract member ShouldSerializePropertyInTargetVersion : System.Configuration.ConfigurationProperty * string * System.Runtime.Versioning.FrameworkName * System.Configuration.ConfigurationElement -> bool
override this.ShouldSerializePropertyInTargetVersion : System.Configuration.ConfigurationProperty * string * System.Runtime.Versioning.FrameworkName * System.Configuration.ConfigurationElement -> bool
Protected Friend Overridable Function ShouldSerializePropertyInTargetVersion (property As ConfigurationProperty, propertyName As String, targetFramework As FrameworkName, parentConfigurationElement As ConfigurationElement) As Boolean
Protected Overridable Function ShouldSerializePropertyInTargetVersion (property As ConfigurationProperty, propertyName As String, targetFramework As FrameworkName, parentConfigurationElement As ConfigurationElement) As Boolean
Parametreler
- property
- ConfigurationProperty
Serileştirme ConfigurationProperty için aday olan nesne.
- propertyName
- String
XML'de gerçekleşen nesnenin ConfigurationProperty adı.
- targetFramework
- FrameworkName
.NET Framework'ün hedef sürümü.
- parentConfigurationElement
- ConfigurationElement
özelliğinin üst öğesi.
Döndürülenler
true
property seri hale getirilmelidir; aksi takdirde, false.
Açıklamalar
.NET Framework 4 ve sonraki sürümleri için oluşturulan her yapılandırma bölümü bu yöntemi açıkça geçersiz kılmalı ve true döndürmelidir, ancak yalnızca belirtilen özellik .NET Framework'ün belirtilen sürümü için geçerliyse. .NET Framework'ün önceki sürümleri için oluşturulan mevcut yapılandırma bölümlerinin değiştirilmesi gerekmez.
Temel tür, bu yöntemin her zaman döndüren truevarsayılan uygulamasını içerir. Bir yapılandırma bölümü uygularsanız ve bu yöntemi geçersiz kılmazsanız, yapılandırma bölümünde yer alan tüm yapılandırma özellikleri varsayılan olarak tüm çerçeve sürümleri için serileştirilir.