XNamespace.ToString Methode
Definition
Gibt den URI dieses XNamespace zurück.Returns the URI of this XNamespace.
public:
override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String
Gibt zurück
Der URI dieses XNamespace.The URI of this XNamespace.
Beispiele
Im folgenden Beispiel wird diese Methode verwendet, um einen Namespace in der Konsole zu drucken.The following example uses this method to print a namespace on the console.
XNamespace aw = "http://www.adventure-works.com";
Console.WriteLine("{0}", aw.ToString());
Imports <xmlns="http://www.adventure-works.com">
Module Module1
Sub Main()
Dim aw As XNamespace = GetXmlNamespace()
Console.WriteLine("{0}", aw)
End Sub
End Module
Dieses Beispiel erzeugt die folgende Ausgabe:This example produces the following output:
http://www.adventure-works.com