Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CertificateTrustList"/> class.
 /// </summary>
 /// <param name="handle">The handle.</param>
 /// <exception cref="System.ArgumentException">Invalid Handle</exception>
 public CertificateTrustList(IntPtr handle) : this()
 {
     if (handle == IntPtr.Zero)
     {
         throw new ArgumentException("Invalid Handle");
     }
     safeHandle = NativeMethods.CertDuplicateCTLContext(handle);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CertificateTrustList"/> class.
 /// </summary>
 /// <param name="handle">The handle.</param>
 /// <exception cref="System.ArgumentException">Invalid Handle</exception>
 public CertificateTrustList(IntPtr handle) : this()
 {
     if (handle == IntPtr.Zero) throw new ArgumentException("Invalid Handle");
     safeHandle = NativeMethods.CertDuplicateCTLContext(handle);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CertificateTrustList"/> class.
 /// </summary>
 public CertificateTrustList() 
 {
     safeHandle = CtlContextHandle.InvalidHandle;
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CertificateTrustList"/> class.
 /// </summary>
 public CertificateTrustList()
 {
     safeHandle = CtlContextHandle.InvalidHandle;
 }