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

System.Xml.Linq.XAttribute

public class XAttribute : XObject
Represents an XML attribute.
public static IEnumerable<XAttribute> EmptySequence { get; }

Gets an empty collection of attributes.

public bool IsNamespaceDeclaration { get; }

Determines if this attribute is a namespace declaration.

public XName Name { get; }

Gets the expanded name of this attribute.

public XAttribute NextAttribute { get; }

Gets the next attribute of the parent element.

public XAttribute PreviousAttribute { get; }

Gets the previous attribute of the parent element.

public string Value { get; set; }

Gets or sets the value of this attribute.

public XAttribute(XName name, object value)

Initializes a new instance of the XAttribute class from the specified name and value.

public XAttribute(XAttribute other)

Initializes a new instance of the XAttribute class from another XAttribute object.

public static string op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a String.

public static bool op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a Boolean.

public static bool? op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a Nullable<T> of Boolean.

public static int op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to an Int32.

public static int? op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a Nullable<T> of Int32.

public static uint op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a UInt32.

public static uint? op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a Nullable<T> of UInt32.

public static long op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to an Int64.

public static long? op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a Nullable<T> of Int64.

public static ulong op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a UInt64.

public static ulong? op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a Nullable<T> of UInt64.

public static float op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a Single.

public static float? op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a Nullable<T> of Single.

public static double op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a Double.

public static double? op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a Nullable<T> of Double.

public static decimal op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a Decimal.

public static decimal? op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a Nullable<T> of Decimal.

public static DateTime op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a DateTime.

public static DateTime? op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a Nullable<T> of DateTime.

public static DateTimeOffset op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a DateTimeOffset.

public static DateTimeOffset? op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a Nullable<T> of DateTimeOffset.

public static TimeSpan op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a TimeSpan.

public static TimeSpan? op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a Nullable<T> of TimeSpan.

public static Guid op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a Guid.

public static Guid? op_Explicit(XAttribute attribute)

Cast the value of this XAttribute to a Nullable<T> of Guid.

public void Remove()

Removes this attribute from its parent element.

public void SetValue(object value)

Sets the value of this attribute.