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

IndexOf() public method

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

Same methods

X509CertificateCollection::IndexOf ( X509Certificate value ) : int

Usage Example

		public void Insert () 
		{
			X509CertificateCollection c = new X509CertificateCollection ();
			c.Add (x509a);
			Assert.AreEqual (0, c.IndexOf (x509a), "a=0");
			c.Add (x509c);
			Assert.AreEqual (1, c.IndexOf (x509c), "c=1");

			c.Insert (1, x509b);
			Assert.AreEqual (1, c.IndexOf (x509b), "1");
			Assert.AreEqual (2, c.IndexOf (x509c), "2");
		}
All Usage Examples Of System.Security.Cryptography.X509Certificates.X509CertificateCollection::IndexOf