EventDescriptorCollection.IList.IndexOf(Object) 方法

定义

确定集合中特定项的索引。Determines the index of a specific item in the collection.

 virtual int System.Collections.IList.IndexOf(System::Object ^ value) = System::Collections::IList::IndexOf;
int IList.IndexOf (object value);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (value As Object) As Integer Implements IList.IndexOf

参数

value
Object

要在集合中查找的 ObjectThe Object to locate in the collection.

返回

Int32

如果在列表中找到,则为 value 的索引;否则为 -1。The index of value if found in the list; otherwise, -1.

实现

注解

备注

HostProtectionAttribute应用于此类的特性具有以下 Resources 属性值: SynchronizationThe HostProtectionAttribute attribute applied to this class has the following Resources property value: Synchronization. HostProtectionAttribute 不影响桌面应用程序(通常通过双击图标、键入命令或在浏览器中输入 URL 来启动这些应用程序)。The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). 有关详细信息,请参阅 HostProtectionAttribute 类或 SQL Server 编程和宿主保护特性For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.

适用于