X509Certificate.Handle X509Certificate.Handle X509Certificate.Handle X509Certificate.Handle Property

Definition

Gets a handle to a Microsoft Cryptographic API certificate context described by an unmanaged PCCERT_CONTEXT structure.

public:
 property IntPtr Handle { IntPtr get(); };
[System.Runtime.InteropServices.ComVisible(false)]
[get: System.Security.SecurityCritical]
public IntPtr Handle { get; }
member this.Handle : nativeint
Public ReadOnly Property Handle As IntPtr

Property Value

An IntPtr structure that represents an unmanaged PCCERT_CONTEXT structure.

Remarks

The handle is valid only for the lifetime of the X509Certificate object.

Security

SecurityCriticalAttribute
requires full trust for the immediate caller. This class cannot be used by partially trusted or transparent code.

InheritanceDemand
for the ability to execute unmanaged code. Associated enumeration: UnmanagedCode

Applies to