SAWVSDK::undoCheckoutProject
Description
Undoes checkout of a project.
Syntax
int undoCheckoutProject(
String strProjectToUndoCheckout,
String strLocalDir,
boolean bRecursive,
int iEnumEOL,
int iEnumSetLocalFileTime,
int iEnumLocalFileHandling,
int
iEnumUndoCheckOutChangeFileHandling,
boolean bUseReadonlyForFileNotCheckedOut,
BaseDataObject bdobCandeled,
BaseDataObject bdostrError,
ResultArray aryResult
);
Parameters
strProjectToUndoCheckout
[in] Specifies the name of the project to be undone
checkout.
strLocalDir
[in] Specifies the local directory path of the project.
bRecursive
[in] Specifies whether the folders are to be undone checkout recursively.
iEnumEOL
[in] Specifies which end-of-line terminator is to be used.
iEnumSetLocalFileTime
[in] Specifies the type of time to be assigned to local files.
iEnumLocalFileHandling
[in] Specifies how to handle the local file after the checkout is undone.
iEnumUndoCheckOutchangeFileHandling
[in] Specifies how to handle the file if the local copy has been changed
bUseReadonlyForFileNotCheckedOut
[in] Specifies whether to use read-only flag on files that are not
checked out.
bdobCanceled
[out] If the method fails, returns whether the operation is canceled.
bdostrError
[out] Returns the description of the result. If the operation succeeds, returns
'Completed'. If the operation fails, returns the error information.
aryResult
[out] Returns the result information set of the operation.
Return Value
If the method succeeds, returns the value of ESAWV_SUCCESS. If the method fails, returns other error codes.
See Also
Note: If the local copies of the files under the project are modified and the parameter "iEnumUndoCheckOutChangeFileHandling" is set to the enum "enumAskUndoCheckOutChangedFile", the method "PromptUndoCheckoutChangedFiles()" will be triggered.