Schema.Uri 属性

定义

自定义 XML 架构命名空间

表示架构中的以下属性:sl:uri

[DocumentFormat.OpenXml.SchemaAttr(25, "uri")]
public DocumentFormat.OpenXml.StringValue Uri { get; set; }
public DocumentFormat.OpenXml.StringValue Uri { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(25, "uri")]
public DocumentFormat.OpenXml.StringValue? Uri { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("sl:uri")]
public DocumentFormat.OpenXml.StringValue? Uri { get; set; }
public DocumentFormat.OpenXml.StringValue? Uri { get; set; }
member this.Uri : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr(25, "uri")>]
member this.Uri : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr("sl:uri")>]
member this.Uri : DocumentFormat.OpenXml.StringValue with get, set
Public Property Uri As StringValue

属性值

返回 StringValue

属性

注解

使用此类时,ECMA 国际标准 ECMA-376 中的以下信息可能很有用。

指定与此架构引用关联的 XML 架构的目标命名空间。

对于自定义 XML 命名空间数据,请考虑以下内容:

…  
<w:schema w:uri="http://www.contoso.com/schema1" />  
<w:schema w:uri="http://www.contoso.com/schema2" />  
…  

属性 uri 指定每个 XML 架构引用的目标命名空间:

  • http://www.contoso.com/schema1

  • http://www.contoso.com/schema2

然后,应用程序可以使用任何可用的方法查找和使用这些命名空间的架构。

此属性的可能值由 XML 架构 string 数据类型定义。

适用于