Dossier::CreateStockInfo (Interface: Dossier)
 
Creates a Stock Information object.
 
IStockInfo* CreateStockInfo ()
 
Remarks
How to explicitly destroy this object?
C++
pStockInfo = NULL
The object is destroyed immediately.
C#
System.Runtime.InteropServices.Marshal.ReleaseComObject(oStockInfo)
oStockInfo = 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 oStockInfo = Nothing
The object is destroyed immediately.
VBN
System.Runtime.InteropServices.Marshal.ReleaseComObject(oStockInfo)
oStockInfo = 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++
 
IStockInfoPtr pStockInfo = pDossier->CreateStockInfo ();

C#
 
StockInfo oStockInfo = oDossier.CreateStockInfo ();

VBS
 
Dim oStockInfo
Set oStockInfo = oDossier.CreateStockInfo()

VB.NET
 
Dim oStockInfo As ClSdk.StockInfo
oStockInfo = oDossier.CreateStockInfo()