Dossier::CreateFirm (Interface: Dossier)
 
Creates a Firm Data object.
 
IFirm* CreateFirm (
    VARIANT_BOOL bCanChange
)
 
Parameters
bCanChange
[in] True if you want to update the Firm Data (inserting or deleting Firm Data is not allowed), otherwise false.
 
Return value
A pointer to a Firm Data object object interface.
 
Remarks
How to explicitly destroy this object?
C++
pFirm = NULL
The object is destroyed immediately.
C#
System.Runtime.InteropServices.Marshal.ReleaseComObject(oFirm)
oFirm = 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 oFirm = Nothing
The object is destroyed immediately.
VBN
System.Runtime.InteropServices.Marshal.ReleaseComObject(oFirm)
oFirm = 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++
 
IFirmPtr pFirm = pDossier->CreateFirm (VARIANT_TRUE);

C#
 
Firm oFirm = oDossier.CreateFirm (true);

VBS
 
Dim oFirm
Set oFirm = oDossier.CreateFirm(True)

VB.NET
 
Dim oFirm As ClSdk.Firm
oFirm = oDossier.CreateFirm(True)