Gets the namespace URI for the default namespace.
Public Overridable ReadOnly Property DefaultNamespace As String
Dim instance As XmlNamespaceManager Dim value As String value = instance.DefaultNamespace
public virtual string DefaultNamespace { get; }
public: virtual property String^ DefaultNamespace { String^ get (); }
public function get DefaultNamespace () : String
This method is equivalent to calling LookupNamespace(String.Empty).
The following example displays the default namespace, if one exists.
If nsmgr.HasNamespace(String.Empty) Then Console.WriteLine(nsmgr.DefaultNamespace) End If
if (nsmgr.HasNamespace(String.Empty)) Console.WriteLine(nsmgr.DefaultNamespace);
if ( nsmgr->HasNamespace( String::Empty ) ) { Console::WriteLine( nsmgr->DefaultNamespace ); }
if (nsmgr->HasNamespace(String::Empty)) Console::WriteLine(nsmgr->DefaultNamespace);
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune