XNamespace.NamespaceName Propriété
Définition
Obtient l'URI (Uniform Resource Identifier) de cet espace de noms.Gets the Uniform Resource Identifier (URI) of this namespace.
public:
property System::String ^ NamespaceName { System::String ^ get(); };
public string NamespaceName { get; }
member this.NamespaceName : string
Public ReadOnly Property NamespaceName As String
Valeur de propriété
String qui contient l'URI de l'espace de noms.A String that contains the URI of the namespace.
Exemples
The following example shows how to use this property:
string markup =
@"<aw:Root
xmlns:aw='http://www.adventure-works.com'/>";
XElement root = XElement.Parse(markup);
Console.WriteLine(root.Name.Namespace.NamespaceName);
Imports <xmlns:aw="http://www.adventure-works.com">
Module Module1
Sub Main()
Dim aw As XNamespace = GetXmlNamespace(aw)
Dim root As XElement = <aw:Root/>
Console.WriteLine(root.Name.Namespace.NamespaceName)
End Sub
End Module
Cet exemple génère la sortie suivante :This example produces the following output:
http://www.adventure-works.com