Venice
Year::CreateEntry
 
Creates an Entry object.
 
IEntry* CreateEntry (
    VARIANT_BOOL bCanChange
)
 
Parameters
bCanChange
[in] True if you want to update existing entries (inserting or deleting an entry is not allowed), otherwise false.
 
Return value
A pointer to an Entry object interface.
 
Remarks
How to explicitly destroy this object?
C++
pEntry = NULL
The object is destroyed immediately.
C#
System.Runtime.InteropServices.Marshal.ReleaseComObject(oEntry)
oEntry = 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 oEntry = Nothing
The object is destroyed immediately.
VBN
System.Runtime.InteropServices.Marshal.ReleaseComObject(oEntry)
oEntry = 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
CreateYearContext
 
Samples
 
C++
 
IEntryPtr pEntry = pYear->CreateEntry (VARIANT_FALSE);

C#
 
Entry oEntry = oYear.CreateEntry (false);

VBS
 
Dim oEntry
Set oEntry = oYear.CreateEntry(False)

VB.NET
 
Dim oEntry As ClSdk.Entry
oEntry = oYear.CreateEntry(False)