Share via


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 XmlSchemaSet from the resulting set of schemas.

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

Usage

'Usage
Dim instance As XmlSchemaSetBuilder

instance.Compile

Syntax

'Declaration
Public MustOverride Sub Compile
public abstract void Compile ()
public:
virtual void Compile () abstract
public abstract void Compile ()
public abstract function Compile ()

Remarks

The object identity of the 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, Set, and CompiledSet properties.

XmlSchema objects can be shared across multiple XmlSchemaSet objects. Because 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.

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

XmlSchemaSetBuilder Class
XmlSchemaSetBuilder Members
Microsoft.VisualStudio.XmlEditor Namespace

Build Date:

2012-11-12