Year::CreateAnCnt (Interface: Year)
 
Creates an Analytical Centre object.
 
IAnCnt* CreateAnCnt (
    VARIANT_BOOL bCanChange
)
 
Parameters
bCanChange
[in] True if you want to update existing analytical centre entries (inserting or deleting an entry is not allowed), otherwise false.
 
Return value
A pointer to an Analytical Centre entry object interface.
 
Remarks
How to explicitly destroy this object?
C++
pAnCnt = NULL
The object is destroyed immediately.
C#
System.Runtime.InteropServices.Marshal.ReleaseComObject(oAnCnt)
oAnCnt = 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 oAnCnt = Nothing
The object is destroyed immediately.
VBN
System.Runtime.InteropServices.Marshal.ReleaseComObject(oAnCnt)
oAnCnt = 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
CreateYearContext
 
Samples
 
C++
 
IAnCntPtr pAnCnt = pYear->CreateAnCnt (VARIANT_TRUE);

C#
 
AnCnt oAnCnt = oYear.CreateAnCnt (true);

VBS
 
Dim oAnCnt
Set oAnCnt = oYear.CreateAnCnt(True)

VB.NET
 
Dim oAnCnt As ClSdk.AnCnt
oAnCnt = oYear.CreateAnCnt(True)