Redigeeri

Jagamisviis:


XName Class

Definition

Represents a name of an XML element or attribute.

public ref class XName sealed : IEquatable<System::Xml::Linq::XName ^>
public ref class XName sealed : IEquatable<System::Xml::Linq::XName ^>, System::Runtime::Serialization::ISerializable
public sealed class XName : IEquatable<System.Xml.Linq.XName>
public sealed class XName : IEquatable<System.Xml.Linq.XName>, System.Runtime.Serialization.ISerializable
[System.Serializable]
public sealed class XName : IEquatable<System.Xml.Linq.XName>, System.Runtime.Serialization.ISerializable
[System.Serializable]
[System.Runtime.Serialization.KnownType(typeof(System.Xml.Linq.NameSerializer))]
public sealed class XName : IEquatable<System.Xml.Linq.XName>, System.Runtime.Serialization.ISerializable
type XName = class
    interface IEquatable<XName>
type XName = class
    interface IEquatable<XName>
    interface ISerializable
[<System.Serializable>]
type XName = class
    interface IEquatable<XName>
    interface ISerializable
[<System.Serializable>]
[<System.Runtime.Serialization.KnownType(typeof(System.Xml.Linq.NameSerializer))>]
type XName = class
    interface IEquatable<XName>
    interface ISerializable
Public NotInheritable Class XName
Implements IEquatable(Of XName)
Public NotInheritable Class XName
Implements IEquatable(Of XName), ISerializable
Inheritance
XName
Attributes
Implements

Remarks

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

Properties

LocalName

Gets the local (unqualified) part of the name.

Namespace

Gets the namespace part of the fully qualified name.

NamespaceName

Returns the URI of the XNamespace for this XName.

Methods

Equals(Object)

Determines whether the specified XName is equal to this XName.

Get(String, String)

Gets an XName object from a local name and a namespace.

Get(String)

Gets an XName object from an expanded name.

GetHashCode()

Gets a hash code for this XName.

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 expanded XML name in the format {namespace}localname.

Operators

Equality(XName, XName)

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

Implicit(String to XName)

Converts a string formatted as an expanded XML name (that is,{namespace}localname) to an XName object.

Inequality(XName, XName)

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

Explicit Interface Implementations

IEquatable<XName>.Equals(XName)

Indicates whether the current XName is equal to the specified XName.

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo with the data required to serialize the target object.

Applies to

See also