ConfigurationSection.ShouldSerializeElementInTargetVersion 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
구성 개체 계층 구조가 지정된 대상 버전의 .NET Framework에 대해 serialize될 때 지정된 요소를 serialize해야 하는지 여부를 나타냅니다.
protected public:
virtual bool ShouldSerializeElementInTargetVersion(System::Configuration::ConfigurationElement ^ element, System::String ^ elementName, System::Runtime::Versioning::FrameworkName ^ targetFramework);
protected:
virtual bool ShouldSerializeElementInTargetVersion(System::Configuration::ConfigurationElement ^ element, System::String ^ elementName, System::Runtime::Versioning::FrameworkName ^ targetFramework);
protected internal virtual bool ShouldSerializeElementInTargetVersion(System.Configuration.ConfigurationElement element, string elementName, System.Runtime.Versioning.FrameworkName targetFramework);
protected virtual bool ShouldSerializeElementInTargetVersion(System.Configuration.ConfigurationElement element, string elementName, System.Runtime.Versioning.FrameworkName targetFramework);
abstract member ShouldSerializeElementInTargetVersion : System.Configuration.ConfigurationElement * string * System.Runtime.Versioning.FrameworkName -> bool
override this.ShouldSerializeElementInTargetVersion : System.Configuration.ConfigurationElement * string * System.Runtime.Versioning.FrameworkName -> bool
Protected Friend Overridable Function ShouldSerializeElementInTargetVersion (element As ConfigurationElement, elementName As String, targetFramework As FrameworkName) As Boolean
Protected Overridable Function ShouldSerializeElementInTargetVersion (element As ConfigurationElement, elementName As String, targetFramework As FrameworkName) As Boolean
매개 변수
- element
- ConfigurationElement
ConfigurationElement serialization 후보 개체입니다.
- elementName
- String
XML에서 ConfigurationElement 발생하는 개체의 이름입니다.
- targetFramework
- FrameworkName
.NET Framework의 대상 버전입니다.
반품
설명
.NET Framework 4 이상 버전에 대해 만들어진 각 구성 섹션은 이 메서드를 명시적으로 재정의하고 true 반환해야 하지만 지정된 요소가 지정된 버전의 .NET Framework에 유효한 경우에만 반환해야 합니다. 이전 버전의 .NET Framework용으로 만든 기존 구성 섹션은 변경할 필요가 없습니다.
기본 형식에는 항상 반환하는 이 메서드의 기본 구현이 포함되어 있습니다 true. 구성 섹션을 구현하고 이 메서드를 재정의하지 않으면 기본적으로 구성 섹션에 포함된 모든 구성 요소가 모든 프레임워크 버전에 대해 직렬화됩니다.