XElement Properties

The XElement type exposes the following members.

  Name Description
Public property BaseUri Gets the base URI for this XObject. (Inherited from XObject.)
Public property Document Gets the XDocument for this XObject. (Inherited from XObject.)
Public property Static member EmptySequence Gets an empty collection of elements.
Public property FirstAttribute Gets the first attribute of this element.
Public property FirstNode Get the first child node of this node. (Inherited from XContainer.)
Public property HasAttributes Gets a value indicating whether this element as at least one attribute.
Public property HasElements Gets a value indicating whether this element has at least one child element.
Public property IsEmpty Gets a value indicating whether this element contains no content.
Public property LastAttribute Gets the last attribute of this element.
Public property LastNode Get the last child node of this node. (Inherited from XContainer.)
Public property Name Gets or sets the name of this element.
Public property NextNode Gets the next sibling node of this node. (Inherited from XNode.)
Public property NodeType Gets the node type for this node. (Overrides XObject.NodeType.)
Public property Parent Gets the parent XElement of this XObject. (Inherited from XObject.)
Public property PreviousNode Gets the previous sibling node of this node. (Inherited from XNode.)
Public property Value Gets or sets the concatenated text contents of this element.
Top

  Name Description
Explicit interface implemetation Private property IXmlLineInfo.LineNumber Gets the line number that the underlying XmlReader reported for this XObject. (Inherited from XObject.)
Explicit interface implemetation Private property IXmlLineInfo.LinePosition Gets the line position that the underlying XmlReader reported for this XObject. (Inherited from XObject.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft