Extensions.DescendantNodesAndSelf(IEnumerable<XElement>) 方法

定義

傳回包含來源集合中每個項目的節點集合,以及來源集合中每個項目的子代節點。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<System::Xml::Linq::XNode ^> ^ DescendantNodesAndSelf(System::Collections::Generic::IEnumerable<System::Xml::Linq::XElement ^> ^ source);
public static System.Collections.Generic.IEnumerable<System.Xml.Linq.XNode> DescendantNodesAndSelf (this System.Collections.Generic.IEnumerable<System.Xml.Linq.XElement> source);
public static System.Collections.Generic.IEnumerable<System.Xml.Linq.XNode> DescendantNodesAndSelf (this System.Collections.Generic.IEnumerable<System.Xml.Linq.XElement?> source);
static member DescendantNodesAndSelf : seq<System.Xml.Linq.XElement> -> seq<System.Xml.Linq.XNode>
<Extension()>
Public Function DescendantNodesAndSelf (source As IEnumerable(Of XElement)) As IEnumerable(Of XNode)

參數

source
IEnumerable<XElement>

IEnumerable<T>XElement,其中包含來源集合。

傳回

IEnumerable<T>XNode,包含來源集合中的每個項目,以及來源集合中每個項目的子代節點。

備註

雖然 Visual Basic 具有子代元素的整合式 XML 軸,但子代節點沒有整合式座標軸,因此 Visual Basic 使用者必須明確使用此軸方法。

這個方法會使用延後的執行。

適用於

另請參閱