Share via


XmlSchemaSetBuilder.Errors Property

 

Gets a list of Exception objects.

Namespace:   Microsoft.VisualStudio.XmlEditor
Assembly:  Microsoft.VisualStudio.XmlEditor (in Microsoft.VisualStudio.XmlEditor.dll)

Syntax

public abstract IList<Exception> Errors { get; }
public:
property IList<Exception^>^ Errors {
    virtual IList<Exception^>^ get() abstract;
}
abstract Errors : IList<Exception> with get
Public MustOverride ReadOnly Property Errors As IList(Of Exception)

Property Value

Type: System.Collections.Generic.IList<Exception>

A list of Exception objects.

Remarks

When Compile is called, this list is cleared. Then an Exception object is added to the list for each error and warning that occurs during resolution or compilation of the schemas.

Different kinds of exceptions can be reported, including XmlException, XmlSchemaException, FileNotFoundException, and so on. To identify warnings, a key value/pair will be added to the Data mapping, where the key is the string XmlSchemaService.IsWarning and the value is a boolean value set to true.

An XmlSchemaReferenceException is reported for each XmlSchemaReference in the Sources collection that directly or indirectly references a schema that resulted in resolution errors.

See Also

XmlSchemaSetBuilder Class
Microsoft.VisualStudio.XmlEditor Namespace

Return to top