Share via


XmlSchemaAnyAttribute.Namespace 属性

定义

获取或设置包含可以使用的特性的命名空间。

public:
 property System::String ^ Namespace { System::String ^ get(); void set(System::String ^ value); };
public string? Namespace { get; set; }
public string Namespace { get; set; }
member this.Namespace : string with get, set
Public Property Namespace As String

属性值

可以使用的特性的命名空间。 默认值为 ##any。 可选。

注解

如果未指定命名空间, ##any 则 为默认值。 如果指定了命名空间,则它必须是下表中显示的值之一。

命名空间值 说明
##any 来自任何命名空间的元素都可以出现。
##other 任何命名空间中不是 targetNamespace 包含该 anyAttribute 元素的父元素的 的 元素都可以存在。
##local 未由命名空间限定的元素可以出现。
##targetNamespace targetNamespace可以存在包含该元素的父元素的 anyAttribute 中的元素。
List of {URIs, ##targetNamespace, ##local} 可以存在以空格分隔的命名空间列表中的元素。 该列表可以包含以下内容:统一资源标识符 (URI) 命名空间 ##targetNamespace、 和 ##local的引用。

适用于