XmlSchemaReferenceException Class
Represents errors reported by the XmlSchemaSetBuilder when a call to XmlSchemaSetBuilder.Compile reports errors.
Namespace: Microsoft.VisualStudio.XmlEditor
Assembly: Microsoft.VisualStudio.XmlEditor (in Microsoft.VisualStudio.XmlEditor.dll)
Usage
'Usage
Dim instance As XmlSchemaReferenceException
Syntax
'Declaration
<SerializableAttribute> _
Public Class XmlSchemaReferenceException
Inherits Exception
[SerializableAttribute]
public class XmlSchemaReferenceException : Exception
[SerializableAttribute]
public ref class XmlSchemaReferenceException : public Exception
/** @attribute SerializableAttribute() */
public class XmlSchemaReferenceException extends Exception
SerializableAttribute
public class XmlSchemaReferenceException extends Exception
Remarks
When a call to XmlSchemaSetBuilder.Compile reports a resolution error, it is useful for applications to understand exactly which XmlSchemaSetBuilder.Sources collection caused the error. An XmlSchemaReferenceException is reported for each XmlSchemaReference in the Sources collection that directly or indirectly references a schema that resulted in resolution errors.
As an example, consider a schema attempting to include xsdtest1.xsd, which in turn includes xsdtest2.xsd. Suppose that xsdtest2.xsd includes xsdtest3.xsd and xsdtest3.xsd includes unknownlocation.xsd. A FileNotFound exception will be reported, because unknownlocation.xsd was not found. The raised XmlSchemaReferenceException will point to the original XmlSchemaReference for xsdtest1.xsd, to inform the user that this reference resulted in down-stream errors.
Inheritance Hierarchy
System.Object
System.Exception
Microsoft.VisualStudio.XmlEditor.XmlSchemaReferenceException
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008, and Windows 2000
Target Platforms
See Also
Reference
XmlSchemaReferenceException Members
Microsoft.VisualStudio.XmlEditor Namespace
Build Date:
2012-11-12