Dossier::CreateBook (Interface: Dossier)
 
Creates a Book object.
 
IBook* CreateBook (
    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 a Book object interface.
 
Remarks
How to explicitly destroy this object?
C++
pBook = NULL
The object is destroyed immediately.
C#
System.Runtime.InteropServices.Marshal.ReleaseComObject(oBook)
oBook = 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 oBook = Nothing
The object is destroyed immediately.
VBN
System.Runtime.InteropServices.Marshal.ReleaseComObject(oBook)
oBook = 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++
 
IBookPtr pBook = pDossier->CreateBook (VARIANT_TRUE);

C#
 
Book oBook = oDossier.CreateBook (true);

VBS
 
Dim oBook
Set oBook = oDossier.CreateBook(True)

VB.NET
 
Dim oBook As ClSdk.Book
oBook = oDossier.CreateBook(True)