|
Creates a Country object. |
|
|
ICntry* CreateCntry ( 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++ |
| pCntry = NULL |
| The object is destroyed immediately. |
| C# |
| System.Runtime.InteropServices.Marshal.ReleaseComObject(oCntry) |
| oCntry = 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 oCntry = Nothing |
| The object is destroyed immediately. |
| VBN |
| System.Runtime.InteropServices.Marshal.ReleaseComObject(oCntry) |
| oCntry = 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++ |
|
ICntryPtr pCntry = pDossier->CreateCntry (VARIANT_TRUE);
|
|
|
C# |
|
Cntry oCntry = oDossier.CreateCntry (true);
|
|
|
VBS |
|
Dim oCntry
Set oCntry = oDossier.CreateCntry(True)
|
|
|
VB.NET |
|
Dim oCntry As ClSdk.Cntry
oCntry = oDossier.CreateCntry(True)
|
|