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

傳回

Int32

XmlElementAttribute 的以零起始的索引。

適用於