Поделиться через


SchemaReference.Uri Property

Target Namespace of Associated XML Schema.Represents the attribte in schema: ds:uri

Namespace:  DocumentFormat.OpenXml.CustomXmlDataProperties
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<SchemaAttrAttribute(, "uri")> _
Public Property Uri As StringValue
    Get
    Set
'Usage
Dim instance As SchemaReference
Dim value As StringValue

value = instance.Uri

instance.Uri = value
[SchemaAttrAttribute(, "uri")]
public StringValue Uri { get; set; }

Property Value

Type: DocumentFormat.OpenXml.StringValue
Returns StringValue.

Remarks

The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.

Specifies the target namespace for the XML Schema associated with this schema reference.

Consider the following content for a custom XML part properties part:

…
<w:schemaRef w:uri="https://www.contoso.com/schema1" />
<w:schemaRef w:uri="https://www.contoso.com/schema2" />
…

The uri attribute specifies the target namespace of each XML schema reference:

Applications may then locate and use a schema for these namespaces using any means available.

The possible values for this attribute are defined by the XML Schema string data type.

See Also

Reference

SchemaReference Class

SchemaReference Members

DocumentFormat.OpenXml.CustomXmlDataProperties Namespace