This documentation is archived and is not being maintained.

X509Certificate2Collection.Contains Method

Determines whether a X509Certificate2Collection object contains a specific certificate.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Supported by the .NET Compact Framework Contains(X509Certificate2) Determines whether the X509Certificate2Collection object contains a specific certificate.
Public method Supported by the .NET Compact Framework Contains(X509Certificate) Gets a value indicating whether the current X509CertificateCollection contains the specified X509Certificate. (Inherited from X509CertificateCollection.)
Top

This method performs a linear search; therefore, the average execution time is proportional to the Count property. That is, this method is an O(n) operation, where n is Count.

This method determines equality by calling the Object.Equals method.

Show: