語言

XmlElementAttributes.IndexOf(XmlElementAttribute) 方法

定義

取得指定 XmlElementAttribute的索引。

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

參數

attribute
XmlElementAttribute

XmlElementAttribute正在被檢索的索引。

傳回

為零基的指數 XmlElementAttribute。

適用於