X509CertificateCollection.IList.IndexOf(Object) 方法

定義

搜尋指定的物件,並傳回集合中第一個符合項目之以零起始的索引。

 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

要在集合中找出的物件。

傳回

如果找到,則是整個集合內 value 的第一個符合項目之索引 (此索引以零起始),否則為 -1。

實作

備註

這個成員是明確介面成員實作, 只有在 X509CertificateCollection 執行個體轉換成 IList 介面時,才能使用這個成員。

適用於