Пример #1
0
 /// <summary>
 /// Releases persistent handle and frees allocated resources.
 /// </summary>
 /// <exception cref="UninitializedObjectException">If <see cref="X509CRL2"/> object is not initialized.</exception>
 /// <returns><strong>True</strong> if the operation succeeds, otherwise <strong>False</strong>.</returns>
 protected override Boolean ReleaseHandle()
 {
     if (!handle.Equals(IntPtr.Zero))
     {
         return(Crypt32.CertFreeCRLContext(handle));
     }
     throw new UninitializedObjectException();
 }
Пример #2
0
 /// <summary>
 /// Releases persistent handle and frees allocated resources.
 /// </summary>
 /// <returns><strong>True</strong> if the operation succeeds, otherwise <strong>False</strong>.</returns>
 protected override Boolean ReleaseHandle()
 {
     return(Crypt32.CertFreeCRLContext(handle));
 }