HSDK Class Descriptions › CaCheckout › bool SetCheckoutMode(HINT32 iMode)
bool SetCheckoutMode(HINT32 iMode)
Sets the Checkout Mode for this process.
Note: The following are the allowable values for the Checkout Mode. They are defined in an include file built into the project.
- CO_MODE_BROWSE-Check out the versions for read only. No lock is set.
- CO_MODE_UPDATE-Check out the versions for reserve.
- CO_MODE_RESERVE_ONLY-Reserve the versions but do not write them to the file system. Set a lock.
- CO_MODE_SYNCHRONIZE-Check out selected versions for read only but only if they are newer than the ones previously checked out to the file system. No lock is set.
- CO_MODE_CONCURRENT-Check out the versions for concurrent update and still allow other reservations with other packages.
- Owning Class
-
CaCheckout
- Arguments
-
HINT32 iMode-the Checkout Mode
- Return Value
-
True if success, false if fail
Example
CaCheckout& rCheckout = rContext.GetCheckout(); bool bResult = rCheckout.SetCheckoutMode(CO_MODE_BROWSE);
More information:
- HSDK Programming Fundamentals
- CaContext
- GetCheckoutMode
|
Copyright © 2013 CA.
All rights reserved.
|
|