<PackageReference Include="System.Xml.XDocument" Version="4.0.11-beta-23409" />

System.Xml.Linq.XNamespace

public sealed class XNamespace
Represents an XML namespace. This class cannot be inherited.
public static XNamespace None { get; }

Gets the XNamespace object that corresponds to no namespace.

public static XNamespace Xml { get; }

Gets the XNamespace object that corresponds to the XML URI (http://www.w3.org/XML/1998/namespace).

public static XNamespace Xmlns { get; }

Gets the XNamespace object that corresponds to the xmlns URI (http://www.w3.org/2000/xmlns/).

public string NamespaceName { get; }

Gets the Uniform Resource Identifier (URI) of this namespace.

public static XNamespace Get(string namespaceName)

Gets an XNamespace for the specified Uniform Resource Identifier (URI).

public static XName op_Addition(XNamespace ns, string localName)

Combines an XNamespace object with a local name to create an XName.

public static bool op_Equality(XNamespace left, XNamespace right)

Returns a value indicating whether two instances of XNamespace are equal.

public static XNamespace op_Implicit(string namespaceName)

Converts a string containing a Uniform Resource Identifier (URI) to an XNamespace.

public static bool op_Inequality(XNamespace left, XNamespace right)

Returns a value indicating whether two instances of XNamespace are not equal.

public XName GetName(string localName)

Returns an XName object created from this XNamespace and the specified local name.