XmlArrayItemAttributes.IndexOf(XmlArrayItemAttribute) Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
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.