Only elements that have a matching XName are included in the collection. public: generic where T: System::Xml::Linq::XNode[System::Runtime::CompilerServices::Extension] static System::Collections::Generic::IEnumerable ^ Ancestors(System::Collections::Generic::IEnumerable ^ source, System::Xml::Linq::XName ^ name);