|
Creates a Sales Offer Detail line object. |
|
|
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 |
| How to explicitly destroy this object? |
|
| C++ |
| pSOfferDet = NULL |
| The object is destroyed immediately. |
| C# |
| System.Runtime.InteropServices.Marshal.ReleaseComObject(oSOfferDet) |
| oSOfferDet = 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 oSOfferDet = Nothing |
| The object is destroyed immediately. |
| VBN |
| System.Runtime.InteropServices.Marshal.ReleaseComObject(oSOfferDet) |
| oSOfferDet = 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 |
|
|
|
Samples |
|
|
C++ |
|
ISOfferDetPtr pSOfferDet = pYear->CreateSOfferDet (VARIANT_TRUE);
|
|
|
C# |
|
SOfferDet oSOfferDet = oYear.CreateSOfferDet (true);
|
|
|
VBS |
|
Dim oSOfferDet
Set oSOfferDet = oYear.CreateSOfferDet(True)
|
|
|
VB.NET |
|
Dim oSOfferDet As ClSdk.SOfferDet
oSOfferDet = oYear.CreateSOfferDet(True)
|
|