Venice
Dossier::CreateComCd
 
Creates a Commodity Codes object.
 
IComCd* CreateComCd (
    int iCalendarYear
)
 
Parameters
iCalendarYear
[in] The calendar year of which you want to consult the commodity codes. If a value of 0 is given, the year of the system date will be used.
 
Remarks
How to explicitly destroy this object?
C++
pComCd = NULL
The object is destroyed immediately.
C#
System.Runtime.InteropServices.Marshal.ReleaseComObject(oComCd)
oComCd = 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 oComCd = Nothing
The object is destroyed immediately.
VBN
System.Runtime.InteropServices.Marshal.ReleaseComObject(oComCd)
oComCd = 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++
 
IComCdPtr pComCd = pDossier->CreateComCd (2008);

C#
 
ComCd oComCd = oDossier.CreateComCd (2008);

VBS
 
Dim oComCd
Set oComCd = oDossier.CreateComCd(2008)

VB.NET
 
Dim oComCd As ClSdk.ComCd
oComCd = oDossier.CreateComCd(2008)