Year::CreatePDeliv (Interface: Year)
 
Creates a Purchase Delivery object.
 
IPDeliv* CreatePDeliv (
    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 Delivery object interface.
 
Remarks
How to explicitly destroy this object?
C++
pPDeliv = NULL
The object is destroyed immediately.
C#
System.Runtime.InteropServices.Marshal.ReleaseComObject(oPDeliv)
oPDeliv = 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 oPDeliv = Nothing
The object is destroyed immediately.
VBN
System.Runtime.InteropServices.Marshal.ReleaseComObject(oPDeliv)
oPDeliv = 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++
 
IPDelivPtr pPDeliv = pYear->CreatePDeliv (VARIANT_TRUE);

C#
 
PDeliv oPDeliv = oYear.CreatePDeliv (true);

VBS
 
Dim oPDeliv
Set oPDeliv = oYear.CreatePDeliv(True)

VB.NET
 
Dim oPDeliv As ClSdk.PDeliv
oPDeliv = oYear.CreatePDeliv(True)