Back to product page

Handle property


Returns MS PCCERT_CONTEXT handle.

Type

A Long value. Should be converted to PCCERT_CONTEXT handle.

Syntax

  • Basic
object.Handle [= value]
The Handle(object,value) syntax has these parts:
objectAn expression evaluating to an object of type Certificate.
valueA Long value.

Remarks

Each loaded certificate can be easily passed to MS CryptoAPI just by getting its PCCERT_CONTEXT handle. Handle property will return long value - you should cast it to appropriate type and pass to MS functions (such as CertDuplicateCertificateContext).

Going other way - if you have PCCERT_CONTEXT handle, you can pass its value to Handle property and Certificate object will load it in memory for you - parsing subject fields and allowing to do operations supported by Certificate object.

Platforms

Windows