XName Class
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.
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
For more information about this API, see Supplemental API remarks for XName.
Local |
Gets the local (unqualified) part of the name. |
Namespace |
Gets the namespace part of the fully qualified name. |
Namespace |
Returns the URI of the XNamespace for this XName. |
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. |
Get |
Gets a hash code for this XName. |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns the expanded XML name in the format |
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, |
Inequality(XName, XName) |
Returns a value indicating whether two instances of XName are not equal. |
IEquatable<XName>.Equals(XName) |
Indicates whether the current XName is equal to the specified XName. |
ISerializable. |
Populates a SerializationInfo with the data required to serialize the target object. |
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: