Editare

Partajați prin


XmlNode.NamespaceURI Property

Definition

Gets the namespace URI of this node.

public:
 virtual property System::String ^ NamespaceURI { System::String ^ get(); };
public virtual string NamespaceURI { get; }
member this.NamespaceURI : string
Public Overridable ReadOnly Property NamespaceURI As String

Property Value

The namespace URI of this node. If there is no namespace URI, this property returns String.Empty.

Remarks

This is the namespace URI specified at creation time. For example, NamespaceURI is urn:samples for the element <bk:book xmlns:bk= "urn:samples">

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.

Applies to