语言

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索引 。

适用于