Dossier::CreateArtcl (Interface: Dossier)
 
Creates an Article object.
 
IArtcl* CreateArtcl (
    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 Article object interface.
 
Remarks
How to explicitly destroy this object?
C++
pArtcl = NULL
The object is destroyed immediately.
C#
System.Runtime.InteropServices.Marshal.ReleaseComObject(oArtcl)
oArtcl = 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 oArtcl = Nothing
The object is destroyed immediately.
VBN
System.Runtime.InteropServices.Marshal.ReleaseComObject(oArtcl)
oArtcl = 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++
 
IArtclPtr pArtcl = pDossier->CreateArtcl (VARIANT_TRUE);

C#
 
Artcl oArtcl = oDossier.CreateArtcl (true);

VBS
 
Dim oArtcl
Set oArtcl = oDossier.CreateArtcl(True)

VB.NET
 
Dim oArtcl As ClSdk.Artcl
oArtcl = oDossier.CreateArtcl(True)