/// <summary> /// Initializes a new instance of the <see cref="CertificateRevocationList"/> class. /// </summary> /// <param name="handle">The handle.</param> /// <exception cref="System.ArgumentException">Invalid Handle</exception> public CertificateRevocationList(IntPtr handle) : this() { if (handle == IntPtr.Zero) { throw new ArgumentException("Invalid Handle"); } safeHandle = NativeMethods.CertDuplicateCRLContext(handle); }
/// <summary> /// Initializes a new instance of the <see cref="CertificateRevocationList"/> class. /// </summary> public CertificateRevocationList() { safeHandle = CrlContextHandle.InvalidHandle; }