XmlArrayItemAttributes.IndexOf Method (XmlArrayItemAttribute)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: