XmlArrayItemAttributes.IndexOf Method (XmlArrayItemAttribute)

 
Use BaseTrue

Returns the zero-based index of the first occurrence of the specified XmlArrayItemAttribute in the collection or -1 if the attribute is not found in the collection.

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

public int IndexOf(
	XmlArrayItemAttribute attribute
)

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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: