XmlSchemaSetBuilder.Compile Method ()

 

Resolves source and candidate locations to find the set of schemas that should be compiled as a unit. This method also compiles the T:System.Xml.XmlSchemaSet from the resulting set of schemas.

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

Syntax

public abstract void Compile()
public:
virtual void Compile() abstract
abstract Compile : unit -> unit
Public MustOverride Sub Compile

Remarks

The object identity of the T:System.Xml.XmlSchemaSet that is built by this method and returned by the CompiledSet property is typically the same across multiple calls. The object identity is only different if the schemas in the set have changed. This allows callers to easily detect whether the set is the same as it was the last time they asked for it.

This method sets the Errors, P:Microsoft.VisualStudio.XmlEditor.XmlSchemaSetBuilder.Set, and CompiledSet properties.

XmlSchema objects can be shared across multiple T:System.Xml.XmlSchemaSet objects. Because T:System.Xml.XmlSchemaSet objects are not thread-safe, you should ensure that each thread has finished using its schema set object before allowing another thread to call Compile. This is because Compile can modify shared XmlSchema objects.

See Also

XmlSchemaSetBuilder Class
Microsoft.VisualStudio.XmlEditor Namespace

Return to top