XmlElementAttributes.IndexOf Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns the zero-based index of the first occurrence of a specified XmlElementAttribute in the collection, or -1 if the attribute is not found in the collection.
Assembly: System.Xml.Serialization (in System.Xml.Serialization.dll)
Parameters
- attribute
- Type: System.Xml.Serialization.XmlElementAttribute
The XmlElementAttribute to locate in the collection.
Return Value
Type: System.Int32The first index of the XmlElementAttribute in the collection, or -1 if the attribute is not found in the collection.
Show: