|
Creates an Analytical Account object. |
|
|
IAnAcc* CreateAnAcc ( VARIANT_BOOL bCanChange ) |
|
|
Parameters | bCanChange | [in] True if you want to make changes (perform inserts, updates or deletes) to the object you are creating, otherwise false. | | Return value |
A pointer to an Analytical Account object interface. | | Remarks |
| How to explicitly destroy this object? |
|
| C++ |
| pAnAcc = NULL |
| The object is destroyed immediately. |
| C# |
| System.Runtime.InteropServices.Marshal.ReleaseComObject(oAnAcc) |
| oAnAcc = 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 oAnAcc = Nothing |
| The object is destroyed immediately. |
| VBN |
| System.Runtime.InteropServices.Marshal.ReleaseComObject(oAnAcc) |
| oAnAcc = 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++ |
|
IAnAccPtr pAnAcc = pDossier->CreateAnAcc (VARIANT_TRUE);
|
|
|
C# |
|
AnAcc oAnAcc = oDossier.CreateAnAcc (true);
|
|
|
VBS |
|
Dim oAnAcc
Set oAnAcc = oDossier.CreateAnAcc(True)
|
|
|
VB.NET |
|
Dim oAnAcc As ClSdk.AnAcc
oAnAcc = oDossier.CreateAnAcc(True)
|
|