Uređivanje

Dijeli putem


XNamespace Class

Definition

Represents an XML namespace. This class cannot be inherited.

public ref class XNamespace sealed
public sealed class XNamespace
type XNamespace = class
Public NotInheritable Class XNamespace
Inheritance
XNamespace

Remarks

For more information about this API, see Supplemental API remarks for XNamespace.

Properties

NamespaceName

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

None

Gets the XNamespace object that corresponds to no namespace.

Xml

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

Xmlns

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

Methods

Equals(Object)

Determines whether the specified XNamespace is equal to the current XNamespace.

Get(String)

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

GetHashCode()

Gets a hash code for this XNamespace.

GetName(String)

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

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns the URI of this XNamespace.

Operators

Addition(XNamespace, String)

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

Equality(XNamespace, XNamespace)

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

Implicit(String to XNamespace)

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

Inequality(XNamespace, XNamespace)

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

Applies to

See also