System.Security.Cryptography.X509Certificates.X509CertificateCollection.Contains C# (CSharp) Method

Contains() public method

public Contains ( System value ) : bool
value System
return bool
        public bool Contains(System.Security.Cryptography.X509Certificates.X509Certificate value)
        {
            throw null;
        }

Same methods

X509CertificateCollection::Contains ( X509Certificate value ) : bool

Usage Example

		public void Contains () 
		{
			X509CertificateCollection c = new X509CertificateCollection ();
			Assert.IsTrue (!c.Contains (x509a), "Empty-A");
			Assert.IsTrue (!c.Contains (null), "Empty-Null");

			c.Add (x509a);
			Assert.IsTrue (c.Contains (x509a), "A-A");
			Assert.IsTrue (!c.Contains (x509b), "A-B");

			// works by value not by object reference
			X509Certificate x = new X509Certificate (cert_a);
			Assert.IsTrue (c.Contains (x), "A-x");
		}
All Usage Examples Of System.Security.Cryptography.X509Certificates.X509CertificateCollection::Contains