Venice
Dossier::CreatePKHist
 
Creates a Pervasive Key History object.
 
IPKHist* CreatePKHist ()
 
Remarks
How to explicitly destroy this object?
C++
pPKHist = NULL
The object is destroyed immediately.
C#
System.Runtime.InteropServices.Marshal.ReleaseComObject(oPKHist)
oPKHist = null
By assigning the object to null the object is released (the reference count is decremented) but not destroyed. The garbage collector decides when the object is actually destroyed. Adding the ReleaseComObject-statement speeds up the actual destruction of the object.
VBS
Set oPKHist = Nothing
The object is destroyed immediately.
VBN
System.Runtime.InteropServices.Marshal.ReleaseComObject(oPKHist)
oPKHist = Nothing
By assigning the object to Nothing the object is released (the reference count is decremented) but not destroyed. The garbage collector decides when the object is actually destroyed. Adding the ReleaseComObject-statement speeds up the actual destruction of the object.
 
See Also
CreateDossierContext
 
Samples
 
C++
 
IPKHistPtr pPKHist = pDossier->CreatePKHist (VARIANT_TRUE);

C#
 
PKHist oPKHist = oDossier.CreatePKHist (true);

VBS
 
Dim oPKHist
Set oPKHist = oDossier.CreatePKHist(True)

VB.NET
 
Dim oPKHist As ClSdk.PKHist
oPKHist = oDossier.CreatePKHist(True)