|
Creates a Current Stock object. |
|
 |
ICurStock* CreateCurStock () |
|
|
Remarks |
 | How to explicitly destroy this object? |
|
 | C++ |
 | pCurStock = NULL |
 | The object is destroyed immediately. |
 | C# |
 | System.Runtime.InteropServices.Marshal.ReleaseComObject(oCurStock) |
 | oCurStock = 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 oCurStock = Nothing |
 | The object is destroyed immediately. |
 | VBN |
 | System.Runtime.InteropServices.Marshal.ReleaseComObject(oCurStock) |
 | oCurStock = 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 |
|
|
|
Samples |
|
 |
C++ |
|
ICurStockPtr pCurStock = pDossier->CreateCurStock ();
|
|
 |
C# |
|
CurStock oCurStock = oDossier.CreateCurStock ();
|
|
 |
VBS |
|
Dim oCurStock
Set oCurStock = oDossier.CreateCurStock()
|
|
 |
VB.NET |
|
Dim oCurStock As ClSdk.CurStock
oCurStock = oDossier.CreateCurStock()
|
|