XNamespace.ToString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns
The URI of this XNamespace.
Examples
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
This example produces the following output:
http://www.adventure-works.com
Applies to
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.