コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CertificateRevocationList"/> class.
 /// </summary>
 public CertificateRevocationList()
 {
     safeHandle = CrlContextHandle.InvalidHandle;
 }