ConfigurationSection.ShouldSerializeSectionInTargetVersion 메서드

정의

구성 개체 계층이 지정된 대상 버전의 .NET Framework에 대해 serialize될 때 현재 ConfigurationSection 인스턴스를 serialize해야 하는지 여부를 나타냅니다.

protected public:
 virtual bool ShouldSerializeSectionInTargetVersion(System::Runtime::Versioning::FrameworkName ^ targetFramework);
protected:
 virtual bool ShouldSerializeSectionInTargetVersion(System::Runtime::Versioning::FrameworkName ^ targetFramework);
protected internal virtual bool ShouldSerializeSectionInTargetVersion(System.Runtime.Versioning.FrameworkName targetFramework);
protected virtual bool ShouldSerializeSectionInTargetVersion(System.Runtime.Versioning.FrameworkName targetFramework);
abstract member ShouldSerializeSectionInTargetVersion : System.Runtime.Versioning.FrameworkName -> bool
override this.ShouldSerializeSectionInTargetVersion : System.Runtime.Versioning.FrameworkName -> bool
Protected Friend Overridable Function ShouldSerializeSectionInTargetVersion (targetFramework As FrameworkName) As Boolean
Protected Overridable Function ShouldSerializeSectionInTargetVersion (targetFramework As FrameworkName) As Boolean

매개 변수

targetFramework
FrameworkName

.NET Framework의 대상 버전입니다.

반품

true현재 섹션을 serialize해야 하는 경우 그렇지 않으면 . false

설명

.NET Framework 4 이상 버전에 대해 만들어진 각 구성 섹션은 이 메서드를 명시적으로 재정의하고 true 반환해야 하지만 구성 섹션이 지정된 버전의 .NET Framework에 유효한 경우에만 반환해야 합니다. 이전 버전의 .NET Framework용으로 만든 기존 구성 섹션은 변경할 필요가 없습니다.

기본 형식에는 항상 반환하는 이 메서드의 기본 구현이 포함되어 있습니다 true. 구성 섹션을 구현하고 이 메서드를 재정의하지 않는 경우 기본적으로 구성 섹션은 모든 프레임워크 버전에 대해 직렬화됩니다.

적용 대상