X509CertificateCollection.Contains Method (X509Certificate)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a value indicating whether the current X509CertificateCollection contains the specified X509Certificate.

Namespace:   System.Security.Cryptography.X509Certificates
Assembly:  System (in System.dll)

public bool Contains(
	X509Certificate value

Return Value

Type: System.Boolean

true if the X509Certificate is contained in this collection; otherwise, false.

.NET Framework
Available since 1.1
Return to top