Venice
Dossier::CreateComAs
 
Creates a Commercial Sales Agreement object.
 
IComAs* CreateComAs (
    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.
 
Remarks
How to explicitly destroy this object?
C++
pComAs = NULL
The object is destroyed immediately.
C#
System.Runtime.InteropServices.Marshal.ReleaseComObject(oComAs)
oComAs = 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 oComAs = Nothing
The object is destroyed immediately.
VBN
System.Runtime.InteropServices.Marshal.ReleaseComObject(oComAs)
oComAs = 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++
 
IComAsPtr pComAs = pDossier->CreateComAs (VARIANT_TRUE);

C#
 
ComAs oComAs = oDossier.CreateComAs (true);

VBS
 
Dim oComAs
Set oComAs = oDossier.CreateComAs(True)

VB.NET
 
Dim oComAs As ClSdk.ComAs
oComAs = oDossier.CreateComAs(True)