GlobalTypeCollection.IList.IndexOf(Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取项在集合中的位置。
virtual int System.Collections.IList.IndexOf(System::Object ^ item) = System::Collections::IList::IndexOf;
virtual int System.Collections.IList.IndexOf(Platform::Object ^ item) = System::Collections::IList::IndexOf;
int System.Collections.IList.IndexOf(winrt::Windows::Foundation::IInspectable const & item);
int IList.IndexOf (object item);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (item As Object) As Integer Implements IList.IndexOf
参数
- item
- Object
要查找的项。
返回
项的位置; 如果未找到该项,则为-1。