This documentation is archived and is not being maintained.

XmlSchema.TargetNamespace Property

Gets or sets the property for the schema target namespace. The URI reference of the namespace of this schema.

[Visual Basic]
Public Property TargetNamespace As String
[C#]
public string TargetNamespace {get; set;}
[C++]
public: __property String* get_TargetNamespace();
public: __property void set_TargetNamespace(String*);
[JScript]
public function get TargetNamespace() : String;
public function set TargetNamespace(String);

Property Value

The target namespace. This is usually the targetNamespace attribute.

Remarks

This 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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

XmlSchema Class | XmlSchema Members | System.Xml.Schema Namespace

Show: