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 | |
---|---|---|
![]() |
XmlSchemaService() | Initializes a new instance of the XmlSchemaService class. |
Methods
Name | Description | |
---|---|---|
![]() |
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. |
![]() |
Equals(Object) | (Inherited from Object.) |
![]() |
Finalize() | (Inherited from Object.) |
![]() |
GetHashCode() | (Inherited from Object.) |
![]() |
GetKnownSchemas() | Returns a list of the schema files. |
![]() |
GetKnownSchemas(Guid) | Returns a list of all the schema files that have been discovered in the specified location. |
![]() |
GetType() | (Inherited from Object.) |
![]() |
MemberwiseClone() | (Inherited from Object.) |
![]() |
ToString() | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
![]() ![]() |
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