|
Creates a Supplier object. |
|
 |
ISuppl* CreateSuppl ( 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 Supplier object interface. | | Remarks |
 | How to explicitly destroy this object? |
|
 | C++ |
 | pSuppl = NULL |
 | The object is destroyed immediately. |
 | C# |
 | System.Runtime.InteropServices.Marshal.ReleaseComObject(oSuppl) |
 | oSuppl = 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 oSuppl = Nothing |
 | The object is destroyed immediately. |
 | VBN |
 | System.Runtime.InteropServices.Marshal.ReleaseComObject(oSuppl) |
 | oSuppl = 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++ |
|
ISupplPtr pSuppl = pDossier->CreateSuppl (VARIANT_TRUE);
|
|
 |
C# |
|
Suppl oSuppl = oDossier.CreateSuppl (true);
|
|
 |
VBS |
|
Dim oSuppl
Set oSuppl = oDossier.CreateSuppl(True)
|
|
 |
VB.NET |
|
Dim oSuppl As ClSdk.Suppl
oSuppl = oDossier.CreateSuppl(True)
|
|