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。