Remove() публичный Метод

public Remove ( System certificate ) : void
certificate System
Результат void
Пример #1
0
        /// <summary>
        /// Removes a certificate from an X.509 certificate store.
        /// </summary>
        /// <param name="certificate">The certificate to remove.</param>
        public void Remove(X509Certificate2 certificate)
        {
            if (certificate == null)
            {
                throw new ArgumentNullException();
            }

            if (!certificate.InternalCert.Delete(m_storeName))
            {
                throw new Exception();
            }

            if (m_certs != null)
            {
                m_certs.Remove(certificate);
            }
        }