XmlSchemaAny.Namespace Property

Definition

Gets or sets the namespaces containing the elements that can be used.

C#
public string? Namespace { get; set; }
C#
public string Namespace { get; set; }

Property Value

Namespaces for elements that are available for use. The default is ##any. Optional.

Remarks

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 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 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. The list can contain the following: Uniform Resource Identifier (URI) references of namespaces, ##targetNamespace, and ##local.

Applies to

Produkt Verzie
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1