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
System_CAPS_pubmethod XmlSchemaReference(String, Uri)

Initializes a new instance of the XmlSchemaReference class.

Properties

Name Description
System_CAPS_pubproperty Location

Gets the physical location of this schema, specified as a URI.

System_CAPS_pubproperty TargetNamespace

Gest the target namespace that this XML schema defines in the targetNamespace attribute.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

Compares the specified XmlSchemaReference with the current XmlSchemaReference to see if they are equal.(Overrides Object.Equals(Object).)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

Gets a hash code. (Overrides Object.GetHashCode().)

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 Empty

Represents an XmlSchemaReference object with no URI location and no target namespace.

Operators

Name Description
System_CAPS_puboperatorSystem_CAPS_static Equality(XmlSchemaReference, XmlSchemaReference)

Determines whether two specified XmlSchemaReference objects are equal.

System_CAPS_puboperatorSystem_CAPS_static 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