XAttribute Methods

XAttribute Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The XAttribute type exposes the following members.

  NameDescription
Public method AddAnnotation Adds an object to the annotation list of this XObject. (Inherited from XObject.)
Public method Annotation(Type) Gets the first annotation object of the specified type from this XObject. (Inherited from XObject.)
Public method Annotation<T>() Get the first annotation object of the specified type from this XObject. (Inherited from XObject.)
Public method Annotations(Type) Gets a collection of annotations of the specified type for this XObject. (Inherited from XObject.)
Public method Annotations<T>() Gets a collection of annotations of the specified type for this XObject. (Inherited from XObject.)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Removes this attribute from its parent element.
Public method RemoveAnnotations(Type) Removes the annotations of the specified type from this XObject. (Inherited from XObject.)
Public method RemoveAnnotations<T>() Removes the annotations of the specified type from this XObject. (Inherited from XObject.)
Public method SetValue Sets the value of this attribute.
Public method ToString Converts the current XAttribute object to a string representation. (Overrides Object.ToString().)
Top

  NameDescription
Explicit interface implemetation Private method IXmlLineInfo.HasLineInfo Gets a value indicating whether or not this XObject has line information. (Inherited from XObject.)
Top

Show:
© 2017 Microsoft