NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlAttribute.NamespaceURI

Gets the namespace URI of this node.

[Visual Basic]
Overridable Public ReadOnly Property NamespaceURI As String
[C#]
public string NamespaceURI {override get;}
[C++]
public: __property virtual String* get_NamespaceURI();
[JScript]
public function get NamespaceURI() : String;

Property Value

The namespace URI of this node. If there is no namespace URI, this property is null.

Remarks

For example, "uuu" for the following "foo" element: <foo xmlns="uuu"> is not a computed value that is the result of a namespace lookup based on an examination of the namespace declarations in scope. It is merely the namespace URI given at creation time.

For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as createElement from the XmlDocument, this is always null.In accordance with the Namespaces in XML Specification [Namespaces], an attribute does not inherit its namespace from the element it is attached to. If an attribute is not explicitly given a namespace, it simply has no namespace.

See Also

XmlAttribute Class | XmlAttribute Members | System.NewXml Namespace