|
Creates a Lookup object. |
|
 |
ILookup* CreateLookup ( 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++ |
 | pLookup = NULL |
 | The object is destroyed immediately. |
 | C# |
 | System.Runtime.InteropServices.Marshal.ReleaseComObject(oLookup) |
 | oLookup = 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 oLookup = Nothing |
 | The object is destroyed immediately. |
 | VBN |
 | System.Runtime.InteropServices.Marshal.ReleaseComObject(oLookup) |
 | oLookup = 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++ |
|
ILookupPtr pLookup = pDossier->CreateLookup (VARIANT_TRUE);
|
|
 |
C# |
|
Lookup oLookup = oDossier.CreateLookup (true);
|
|
 |
VBS |
|
Dim oLookup
Set oLookup = oDossier.CreateLookup(True)
|
|
 |
VB.NET |
|
Dim oLookup As ClSdk.Lookup
oLookup = oDossier.CreateLookup(True)
|
|