Venice
Year::CreatePOffer
 
Creates a Purchase Offer object.
 
IPOffer* CreatePOffer (
    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 Purchase Offer object interface.
 
Remarks
How to explicitly destroy this object?
C++
pPOffer = NULL
The object is destroyed immediately.
C#
System.Runtime.InteropServices.Marshal.ReleaseComObject(oPOffer)
oPOffer = 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 oPOffer = Nothing
The object is destroyed immediately.
VBN
System.Runtime.InteropServices.Marshal.ReleaseComObject(oPOffer)
oPOffer = 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++
 
IPOfferPtr pPOffer = pYear->CreatePOffer (VARIANT_TRUE);

C#
 
POffer oPOffer = oYear.CreatePOffer (true);

VBS
 
Dim oPOffer
Set oPOffer = oYear.CreatePOffer(True)

VB.NET
 
Dim oPOffer As ClSdk.POffer
oPOffer = oYear.CreatePOffer(True)