|
Creates a Sales Delivery Detail line object. |
|
![](Trans1P.gif) |
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 |
![](Box12412.gif) | How to explicitly destroy this object? |
|
![](Box12412.gif) | C++ |
![](Trans1P.gif) | pSDelivDet = NULL |
![](Trans1P.gif) | The object is destroyed immediately. |
![](Box12412.gif) | C# |
![](Trans1P.gif) | System.Runtime.InteropServices.Marshal.ReleaseComObject(oSDelivDet) |
![](Trans1P.gif) | oSDelivDet = null |
![](Trans1P.gif) | 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. |
![](Box12412.gif) | VBS |
![](Trans1P.gif) | Set oSDelivDet = Nothing |
![](Trans1P.gif) | The object is destroyed immediately. |
![](Box12412.gif) | VBN |
![](Trans1P.gif) | System.Runtime.InteropServices.Marshal.ReleaseComObject(oSDelivDet) |
![](Trans1P.gif) | oSDelivDet = Nothing |
![](Trans1P.gif) | 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 |
|
|
|
Samples |
|
![](Box12412.gif) |
C++ |
|
ISDelivDetPtr pSDelivDet = pYear->CreateSDelivDet (VARIANT_TRUE);
|
|
![](Box12412.gif) |
C# |
|
SDelivDet oSDelivDet = oYear.CreateSDelivDet (true);
|
|
![](Box12412.gif) |
VBS |
|
Dim oSDelivDet
Set oSDelivDet = oYear.CreateSDelivDet(True)
|
|
![](Box12412.gif) |
VB.NET |
|
Dim oSDelivDet As ClSdk.SDelivDet
oSDelivDet = oYear.CreateSDelivDet(True)
|
|