XmlSchemaReference Constructor (String, Uri)
Initializes a new instance of the XmlSchemaReference class.
Namespace: Microsoft.VisualStudio.XmlEditor
Assembly: Microsoft.VisualStudio.XmlEditor (in Microsoft.VisualStudio.XmlEditor.dll)
Syntax
public XmlSchemaReference(
string targetNamespace,
Uri location
)
public:
XmlSchemaReference(
String^ targetNamespace,
Uri^ location
)
new :
targetNamespace:string *
location:Uri -> XmlSchemaReference
Public Sub New (
targetNamespace As String,
location As Uri
)
Parameters
targetNamespace
Type: System.StringThe target namespace of the XML schema. Can be null.
location
Type: System.UriThe location of the XML schema file. Can be null.
Remarks
Either the targetNamespace or the Uniform Resource Identifier (URI) location can be null. Typically, the URI is first consulted to locate the schema. If that is not available, or does not reference a valid resource, the builder will attempt to find all schemas that have a matching target namespace. If the TargetNamespace is null, the resolved XmlSchemaReference will copy the targetNamespace attribute from the XML Schema file specified by the URI.
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.
See Also
XmlSchemaReference Class
Microsoft.VisualStudio.XmlEditor Namespace
Return to top