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

Insert() public method

public Insert ( int index, System value ) : void
index int
value System
return void
        public void Insert(int index, System.Security.Cryptography.X509Certificates.X509Certificate value)
        {
        }

Same methods

X509CertificateCollection::Insert ( int index, X509Certificate value ) : void

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::Insert