Venice
Year::CreateSDelivDet
 
Creates a Sales Delivery Detail line object.
 
ISDelivDet* CreateSDelivDet (
    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.
 
Remarks
How to explicitly destroy this object?
C++
pSDelivDet = NULL
The object is destroyed immediately.
C#
System.Runtime.InteropServices.Marshal.ReleaseComObject(oSDelivDet)
oSDelivDet = 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 oSDelivDet = Nothing
The object is destroyed immediately.
VBN
System.Runtime.InteropServices.Marshal.ReleaseComObject(oSDelivDet)
oSDelivDet = 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++
 
ISDelivDetPtr pSDelivDet = pYear->CreateSDelivDet (VARIANT_TRUE);

C#
 
SDelivDet oSDelivDet = oYear.CreateSDelivDet (true);

VBS
 
Dim oSDelivDet
Set oSDelivDet = oYear.CreateSDelivDet(True)

VB.NET
 
Dim oSDelivDet As ClSdk.SDelivDet
oSDelivDet = oYear.CreateSDelivDet(True)