ValidationType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the type of validation to perform.
public enum class ValidationType
public enum ValidationType
type ValidationType =
Public Enum ValidationType
- Inheritance
Fields
Auto | 1 | Validates if DTD or schema information is found. Starting with .NET Framework 2.0, this field is obsolete. It applies only to the obsolete XmlValidatingReader class. |
DTD | 2 | Validates according to the DTD. |
None | 0 | No validation is performed, and no validation errors are thrown. This setting creates an XML 1.0 compliant non-validating parser. Calls to ResolveEntity() report default attributes and resolve general entities. The DOCTYPE is not used for validation purposes. |
Schema | 4 | Validate according to XML Schema definition language (XSD) schemas, including inline XML Schemas. XML Schemas are associated with namespace URIs either by using the |
XDR | 3 | Validate according to XML-Data Reduced (XDR) schemas, including inline XDR schemas. XDR schemas are recognized using the Starting with .NET Framework 2.0, this field is obsolete. It applies only to the obsolete XmlValidatingReader class. |
Remarks
The XmlReader class can enforce validation using a schema or document type definition (DTD). The ValidationType enumeration specifies the type of validation the created XmlReader instance should perform. The XmlReader instance can be either a validating XmlReader object created by the Create method, or an XmlValidatingReader object.
The validation model has three characteristics, strict, informative, and status. Strict, does not allow the mixing of validation types, informative provides a warning if the schema or document type definition (DTD) cannot be found, and status provides warnings if validation cannot be performed for elements and attributes from schemas.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기