XmlArrayItemAttributes.IndexOf(XmlArrayItemAttribute) メソッド

定義

コレクション内で指定した XmlArrayItemAttribute が最初に見つかった位置の 0 から始まるインデックスを返します。属性がコレクション内で見つからなかった場合は -1 を返します。

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

パラメーター

attribute
XmlArrayItemAttribute

コレクション内で検索する XmlArrayItemAttribute

戻り値

Int32

コレクション内の XmlArrayItemAttribute の最初のインデックス。コレクション内に属性が存在しない場合は -1。

適用対象