XmlSchemaAny.Namespace 属性

定义

获取或设置包含可使用的元素的命名空间。Gets or sets the namespaces containing the elements that can be used.

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

属性值

String

可以使用的元素的命名空间。Namespaces for elements that are available for use. 默认值为 ##anyThe default is ##any. 可选。Optional.

注解

如果未指定命名空间, ##any 则默认为。If no namespace is specified, ##any is the default. 如果指定了命名空间,则它必须是下表中显示的值之一。If the namespace is specified, it must be one of the values shown in the following table.

命名空间值Namespace value 说明Description
##any 来自任何命名空间的元素都可以出现。Elements from any namespace can be present.
##other 不是包含元素的父元素的任何命名空间中的元素 targetNamespace any 都可以出现。Elements from any namespace that is not the targetNamespace of the parent element containing the any element can be present.
##local 未由命名空间限定的元素可以出现。Elements that are not qualified with a namespace can be present.
##targetNamespace targetNamespace包含元素的父元素的中的元素 any 可以存在。Elements from the targetNamespace of the parent element containing the any element can be present.
List of {URIs, ##targetNamespace, ##local} 可以存在以空格分隔的命名空间列表中的元素。Elements from a space-delimited list of namespaces can be present. 此列表可以包含以下内容:命名空间、和的统一资源标识符 (URI) 引用 ##targetNamespace ##localThe list can contain the following: Uniform Resource Identifier (URI) references of namespaces, ##targetNamespace, and ##local.

适用于