XmlSchemaReference Class
Represents the combination of an XML schema location and a target namespace.
Namespace: Microsoft.VisualStudio.XmlEditor
Assembly: Microsoft.VisualStudio.XmlEditor (in Microsoft.VisualStudio.XmlEditor.dll)
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.XmlEditor.XmlSchemaReference
Syntax
public class XmlSchemaReference
public ref class XmlSchemaReference
type XmlSchemaReference = class end
Public Class XmlSchemaReference
Constructors
Name | Description | |
---|---|---|
XmlSchemaReference(String, Uri) | Initializes a new instance of the XmlSchemaReference class. |
Properties
Name | Description | |
---|---|---|
Location | Gets the physical location of this schema, specified as a URI. |
|
TargetNamespace | Gest the target namespace that this XML schema defines in the targetNamespace attribute. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | Compares the specified XmlSchemaReference with the current XmlSchemaReference to see if they are equal.(Overrides Object.Equals(Object).) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | Gets a hash code. (Overrides Object.GetHashCode().) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
Empty | Represents an XmlSchemaReference object with no URI location and no target namespace. |
Operators
Name | Description | |
---|---|---|
Equality(XmlSchemaReference, XmlSchemaReference) | Determines whether two specified XmlSchemaReference objects are equal. |
|
Inequality(XmlSchemaReference, XmlSchemaReference) | Determines whether two specified XmlSchemaReference objects are not equal. |
Remarks
The TargetNamespace matches the targetNamespace attribute on the root xsd:schema element in the XML schema located at the specified location.
This class is concrete so that it is easier for external users to call the schema services APIs, which often require XmlSchemaReference.
This class (and derived classes) should always be kept immutable, meaning that the data contained in the instance cannot be changed after construction is complete.
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.
See Also
Microsoft.VisualStudio.XmlEditor Namespace
Return to top