共用方式為


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

傳回

如果找到,則為 X509CertificateCollectionvalue 參數所指定的 X509Certificate 索引,否則為 -1。

適用於

另請參閱