XmlArrayItemAttributes.IndexOf(XmlArrayItemAttribute) Metódus

Definíció

A megadott XmlArrayItemAttribute gyűjtemény első előfordulásának nulla alapú indexét adja vissza, vagy -1, ha az attribútum nem található a gyűjteményben.

public:
 int IndexOf(System::Xml::Serialization::XmlArrayItemAttribute ^ attribute);
public int IndexOf(System.Xml.Serialization.XmlArrayItemAttribute attribute);
public int IndexOf(System.Xml.Serialization.XmlArrayItemAttribute? attribute);
member this.IndexOf : System.Xml.Serialization.XmlArrayItemAttribute -> int
Public Function IndexOf (attribute As XmlArrayItemAttribute) As Integer

Paraméterek

attribute
XmlArrayItemAttribute

A XmlArrayItemAttribute gyűjteményben keresendő.

Válaszok

A gyűjtemény első indexe XmlArrayItemAttribute vagy -1, ha az attribútum nem található a gyűjteményben.

A következőre érvényes: