XmlValidatingReader.ValidationType Property
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.
Gets or sets a value indicating the type of validation to perform.
public:
property System::Xml::ValidationType ValidationType { System::Xml::ValidationType get(); void set(System::Xml::ValidationType value); };
public System.Xml.ValidationType ValidationType { get; set; }
member this.ValidationType : System.Xml.ValidationType with get, set
Public Property ValidationType As ValidationType
Property Value
One of the ValidationType values. If this property is not set, it defaults to ValidationType.Auto.
Exceptions
Setting the property after a Read has been called.
Remarks
Note
The XmlValidatingReader class is obsolete in .NET Framework 2.0. You can create a validating XmlReader instance by using the XmlReaderSettings class and the Create method. For more information, see the Remarks section of the XmlReader reference page.
This property must be set before the first call to Read. Setting this property to ValidationType.None creates a non-validating reader.
If external document type definitions (DTDs) or schemas are needed for validation, the XmlResolver is used.