XmlSchema.TargetNamespace Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the Uniform Resource Identifier (URI) of the schema target namespace.

Namespace:   System.Xml.Schema
Assembly:  System.Xml (in System.Xml.dll)

member TargetNamespace : string with get, set

Property Value

Type: System.String

The schema target namespace.

The TargetNamespace is the namespace of all schema components in this schema as well as any schema included using the include element. Included schemas must either have the same target namespace as the containing schema or have no target namespace specified.

.NET Framework
Available since 1.1
Return to top