X509CertificateCollection.IndexOf(X509Certificate) 方法

定义

返回当前 X509CertificateCollection 中指定的 X509Certificate 的索引。

public:
 int IndexOf(System::Security::Cryptography::X509Certificates::X509Certificate ^ value);
public int IndexOf (System.Security.Cryptography.X509Certificates.X509Certificate value);
member this.IndexOf : System.Security.Cryptography.X509Certificates.X509Certificate -> int
Public Function IndexOf (value As X509Certificate) As Integer

参数

value
X509Certificate

要查找的 X509Certificate

返回

Int32

若找到,则为 X509CertificateCollectionvalue 参数指定的 X509Certificate 的索引;否则为 -1。

适用于

另请参阅