ConfigurationSection.ShouldSerializeSectionInTargetVersion 메서드

정의

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

protected:
 virtual bool ShouldSerializeSectionInTargetVersion(System::Runtime::Versioning::FrameworkName ^ targetFramework);
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);
abstract member ShouldSerializeSectionInTargetVersion : System.Runtime.Versioning.FrameworkName -> bool
override this.ShouldSerializeSectionInTargetVersion : System.Runtime.Versioning.FrameworkName -> bool
Protected Overridable Function ShouldSerializeSectionInTargetVersion (targetFramework As FrameworkName) As Boolean
Protected Friend Overridable Function ShouldSerializeSectionInTargetVersion (targetFramework As FrameworkName) As Boolean

매개 변수

targetFramework
FrameworkName

.NET Framework 대상 버전입니다.

반환

현재 섹션을 serialize해야 하면 true이고, 그렇지 않으면 false입니다.

설명

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

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

적용 대상

추가 정보