System.Security.Cryptography.X509Certificates.X509Certificate2Enumerator.MoveNext C# (CSharp) Method

MoveNext() public method

public MoveNext ( ) : bool
return bool
        public bool MoveNext()
        {
            return _enumerator.MoveNext();
        }

Usage Example

Example #1
0
        public void RemoveRange(X509Certificate2Collection certificates)
        {
            if (certificates == null)
            {
                throw new ArgumentNullException("certificates");
            }
            int num = 0;

            try
            {
                X509Certificate2Enumerator enumerator = certificates.GetEnumerator();
                while (enumerator.MoveNext())
                {
                    X509Certificate2 current = enumerator.Current;
                    this.Remove(current);
                    num++;
                }
            }
            catch
            {
                for (int i = 0; i < num; i++)
                {
                    this.Add(certificates[i]);
                }
                throw;
            }
        }
All Usage Examples Of System.Security.Cryptography.X509Certificates.X509Certificate2Enumerator::MoveNext