共用方式為


XmlSeverityType Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Represents the severity of the validation event.

Namespace:  System.Xml.Schema
Assembly:  System.Xml (in System.Xml.dll)

Syntax

'Declaration
Public Enumeration XmlSeverityType
public enum XmlSeverityType

Members

Member name Description
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Error Indicates that a validation error occurred when validating the instance document. This applies to document type definitions (DTDs) and XML Schema definition language (XSD) schemas. The World Wide Web Consortium (W3C) validity constraints are considered errors. If no validation event handler has been created, errors throw an exception.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Warning Indicates that a validation event occurred that is not an error. A warning is typically issued when there is no DTD or XML Schema to validate a particular element or attribute against. Unlike errors, warnings do not throw an exception if there is no validation event handler.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference