SafeCRLHandleContext Class

SafeCRLHandleContext provides a SafeHandle class for an X509CRL2 certificate revocation list context as stored in its handle. This can be used instead of the raw IntPtr to avoid races with the garbage collector, ensuring that the X509Certificate object is not cleaned up from underneath you while you are still using the handle pointer.

This safe handle type represents a native CRL_CONTEXT.

A SafeCRLHandleContext for an X509CRL2 can be obtained by calling the GetSafeContext(X509CRL2) extension method.

Definition

Namespace: SysadminsLV.PKI.Cryptography.X509Certificates
Assembly: SysadminsLV.PKI.Win (in SysadminsLV.PKI.Win.dll) Version: 4.0.1.0 (4.0.1.0)
C#
[HostProtectionAttribute(SecurityAction.LinkDemand, MayLeakOnAbort = true)]
public sealed class SafeCRLHandleContext : SafeHandleZeroOrMinusOneIsInvalid
Inheritance
Object    CriticalFinalizerObject    SafeHandle    SafeHandleZeroOrMinusOneIsInvalid    SafeCRLHandleContext

Constructors

SafeCRLHandleContextInitializes a new instance of the SafeCRLHandleContext class

Properties

Methods

Close
(Inherited from SafeHandle)
DangerousAddRef
(Inherited from SafeHandle)
DangerousGetHandle
(Inherited from SafeHandle)
DangerousRelease
(Inherited from SafeHandle)
Dispose
(Inherited from SafeHandle)
Equals
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
SetHandleAsInvalid
(Inherited from SafeHandle)
ToString
(Inherited from Object)

.NET Framework Security

SecurityPermission The immediate caller must have SecurityPermission/UnmanagedCode to use this type.

See Also