DescendantsAndSelf Returns a collection of elements that contain the current element plus
all descendant elements of the current element. You can also specify a
name that returns only those elements that match the specified name in
the collection.
Element In an ordered XML document, Element returns the first element that
matches the specified element name.
IsAfter Returns a Boolean value that specifies whether the current node
appears after a specified node.
IsBefore Returns a Boolean value that specifies whether the current node
appears before a specified node.
Load Provides multiple mechanisms for creating new XElements from an
external source. Sources can include a TextReader, String, or
XmlReader (each with an additional option to preserve whitespace).
Nodes Returns a collection of child nodes of the current element or document.
NodesAfterSelf Returns a collection of ordered nodes after (that follow) the
current node.
Continued on the next page
101
Part II: LINQ to XML
Method Description
NodesBeforeSelf Returns a collection of ordered nodes before the current node.
Pages:
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191