SAWHSDK::getOldVersionProjectByVersion
Description
Retrieves an old version of a project from server by version.
Syntax
int getOldVersionProjectByVersion(
String strProjectToGet,
String strLocalDirectory,
long lVersionNumber,
boolean bRecursive,
boolean bMakeWritable,
int enumCompareFileBy,
int enumEOL,
int enumModifiedFileHandling,
int enumSetLocalFileTime,
SDiffMergeParameters
stDiffMergeParameters,
BaseDataObject bdobCanceled,
BaseDataObject bdostrError,
ItemOperateResultArray
aryOperatorResult
);
Parameters
strFileFullNameToGet
[in] Specifies the full name of the file to be retrieved.
lVersionNumber
[in] Specifies the version number of the file version to be retrieved.
bRecursive
[in] Specifies whether to retrieve the project recursively.
bMakeWritable
[in] Specifies whether to make the file
writable after being retrieved.
enumCompareFileBy
[in] Specifies how to determine if the local copy of the file is up-to-date, by checksum or date/time.
enumEOL
[in] Specifies which end-of-line terminator is to be used.
enumModifiedFileHandling
[in] Specifies how to handle the local file
if a writable copy of the file exists in the local disk.
enumSetLocalFileTime
[in] Specifies the type of time to be assigned to the local file.
stDiffMergeParameters
[in] Specifies the parameters of the diff or merge.
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.
aryOperatorResult
[out] Returns the result information of the operation.
Return Value
If the method succeeds, returns 0. If the method fails, returns other error codes.
See Also
Note: If local copies of the files in the project exist and the parameter "enumModifiedFileHandling" is set to the enum "enumAskModifiedFile", the method "PromptLeaveOrReplaceWritableFile()" will be triggered.