X509CertificateCollection.IndexOf(X509Certificate) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回在目前 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。
傳回
如果找到,則為 X509CertificateCollection 的 value
參數所指定的 X509Certificate 索引,否則為 -1。