X509CertificateCollection.IList.IndexOf(Object) 方法

定义

搜索指定的对象,并返回集合中第一个匹配项的从零开始的索引。Searches for the specified object and returns the zero-based index of the first occurrence within 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

要在集合中定位的对象。The object to locate in the collection.

返回

Int32

如果在集合中找到 value,则为第一个匹配项从零开始的索引;否则为 -1。The zero-based index of the first occurrence of value within the collection, if found; otherwise, -1.

实现

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 X509CertificateCollection 实例被强制转换为 IList 接口时使用。It can be used only when the X509CertificateCollection instance is cast to an IList interface.

适用于