Share via


XmlSchemaService Class

 

Contains a set of routines to assist XML schema discovery and compilation operations.

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

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.XmlEditor.XmlSchemaService

Syntax

[GuidAttribute("1A5ACA9F-DFC2-44d4-8E3D-A2ADAC944FAB")]
public abstract class XmlSchemaService
[GuidAttribute("1A5ACA9F-DFC2-44d4-8E3D-A2ADAC944FAB")]
public ref class XmlSchemaService abstract 
[<AbstractClass>]
[<GuidAttribute("1A5ACA9F-DFC2-44d4-8E3D-A2ADAC944FAB")>]
type XmlSchemaService = class end
<GuidAttribute("1A5ACA9F-DFC2-44d4-8E3D-A2ADAC944FAB")>
Public MustInherit Class XmlSchemaService

Constructors

Name Description
System_CAPS_protmethod XmlSchemaService()

Initializes a new instance of the XmlSchemaService class.

Methods

Name Description
System_CAPS_pubmethod CreateSchemaSetBuilder()

Creates an instance of the XmlSchemaSetBuilder, which can be used to obtain a compiled XML schema set with all xsd:import and xsd:include schemas fully resolved.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetKnownSchemas()

Returns a list of the schema files.

System_CAPS_pubmethod GetKnownSchemas(Guid)

Returns a list of all the schema files that have been discovered in the specified location.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Fields

Name Description
System_CAPS_pubfieldSystem_CAPS_static GUID_SchemaCache

Defines a GUID that can be passed to GetKnownSchemas in order to retrieve all schemas located in the schema cache.

Remarks

This class is exposed as a Visual Studio service by the XML Editor. XML IntelliSense and visualization services can be built on the foundation of this class.

The schema services are designed to be used concurrently by multiple threads. Methods of the XmlSchemaService class are thread-safe, which means that multiple threads can call GetKnownSchemas and CreateSchemaSetBuilder concurrently. However, the XmlSchemaSetBuilder class is not thread-safe, which means that callers must ensure that only one thread at a time accesses XmlSchemaSetBuilder properties and methods.

Examples

Thread Safety

This type is thread safe.

See Also

Microsoft.VisualStudio.XmlEditor Namespace

Return to top