Click or drag to resize

SafeCRLHandleContext Class

SafeCRLHandleContext provides a SafeHandle class for an X509CRL2 certificate revocation list context as stored in its Handle property. 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 extension method.

Inheritance Hierarchy

Namespace:  System.Security.Cryptography.X509Certificates
Assembly:  PKI.Core (in PKI.Core.dll) Version: 3.3.0.0 (3.3.0.0)
Syntax
[HostProtectionAttribute(SecurityAction.LinkDemand, MayLeakOnAbort = true)]
public sealed class SafeCRLHandleContext : SafeHandleZeroOrMinusOneIsInvalid

The SafeCRLHandleContext type exposes the following members.

Constructors
  NameDescription
Public methodSafeCRLHandleContext
Initializes a new instance of the SafeCRLHandleContext class
Top
Properties
  NameDescription
Public propertyIsClosed (Inherited from SafeHandle.)
Public propertyIsInvalid (Inherited from SafeHandleZeroOrMinusOneIsInvalid.)
Top
Methods
  NameDescription
Public methodClose (Inherited from SafeHandle.)
Public methodDangerousAddRef (Inherited from SafeHandle.)
Public methodDangerousGetHandle (Inherited from SafeHandle.)
Public methodDangerousRelease (Inherited from SafeHandle.)
Public methodDispose (Inherited from SafeHandle.)
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodSetHandleAsInvalid (Inherited from SafeHandle.)
Public methodToString (Inherited from Object.)
Top
.NET Framework Security
PermissionDescription
System.Security.PermissionsSecurityPermission The immediate caller must have SecurityPermission/UnmanagedCode to use this type.
See Also