หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Gets an indexer used to retrieve the child elements of the current element that match the specified expanded name.
Syntax
elem.Elements[{namespaceName}localName]
Property value/return value
An indexer of the type IEnumerable<XElement> Item(String expandedName). This indexer takes the expanded name of the desired child elements and returns the matching child elements in an IEnumerable<XElement> collection.
Remarks
This property is equivalent to the System.Xml.Linq.XContainer.Elements(XName) method of the XContainer class.
The elements in the returned collection are in XML source document order.
This property uses deferred execution.
See also
.NET Desktop feedback