IndexOf Method

XmlArrayItemAttributes.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 XmlArrayItemAttribute in the collection, or -1 if the attribute is not found in the collection.

Namespace:  System.Xml.Serialization
Assembly:  System.Xml.Serialization (in System.Xml.Serialization.dll)

'Declaration
Public Function IndexOf ( _
	attribute As XmlArrayItemAttribute _
) As Integer

Parameters

attribute
Type: System.Xml.Serialization.XmlArrayItemAttribute
The XmlArrayItemAttribute to locate in the collection.

Return Value

Type: System.Int32
The first index of the XmlArrayItemAttribute in the collection, or -1 if the attribute is not found in the collection.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft