|
Creates a Sales Offer Detail line object. |
|
![](Trans1P.gif) |
ISOfferDet* CreateSOfferDet ( 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) | pSOfferDet = NULL |
![](Trans1P.gif) | The object is destroyed immediately. |
![](Box12412.gif) | C# |
![](Trans1P.gif) | System.Runtime.InteropServices.Marshal.ReleaseComObject(oSOfferDet) |
![](Trans1P.gif) | oSOfferDet = 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 oSOfferDet = Nothing |
![](Trans1P.gif) | The object is destroyed immediately. |
![](Box12412.gif) | VBN |
![](Trans1P.gif) | System.Runtime.InteropServices.Marshal.ReleaseComObject(oSOfferDet) |
![](Trans1P.gif) | oSOfferDet = 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++ |
|
ISOfferDetPtr pSOfferDet = pYear->CreateSOfferDet (VARIANT_TRUE);
|
|
![](Box12412.gif) |
C# |
|
SOfferDet oSOfferDet = oYear.CreateSOfferDet (true);
|
|
![](Box12412.gif) |
VBS |
|
Dim oSOfferDet
Set oSOfferDet = oYear.CreateSOfferDet(True)
|
|
![](Box12412.gif) |
VB.NET |
|
Dim oSOfferDet As ClSdk.SOfferDet
oSOfferDet = oYear.CreateSOfferDet(True)
|
|