SAWHSDK::promptLeaveOrReplaceModifiedFile
Prompts the handling option for checking in or undoing checkout of a file whose local copy is modified.
void promptLeaveOrReplaceModifiedFile(
BaseDataObject
bdoiEnumModifiedFileHandling,
BaseDataObject
bdobModifiedHandlingApplyToAllItems,
Boolean
bThreeWayMerge,
String strInfo
);
Parameters
bdoiEnumModifiedFileHandling
[in] Specifies how to handle the local copy of the file, leaving the
local file or replacing the local file with the version on server.
bdobModifiedHandlingApplyToAllItems
[in] Specifies whether to apply the
handling option to all items
bThreeWayMerge
[out] Returns whether conflicts are detected, and the server file and
local file require a three-way merge.
strInfo
[out] Returns the prompt
information when retrieving a file form server and a writable copy
of the file already exits in the local disk.
Return Value
None.
Remarks
If bdoiEnumModifiedFileHandling= enumAskWritableHandlingCanceled, the get or checkout operation will be canceled when the event calling this method is fired.
If bdoiEnumModifiedFileHandling= enumAskModifiedFile, a warning dialog will pop up asking how to handle the local writable file when the event calling this method is fired.
If bdoiEnumModifiedFileHandling= enumReplaceModifiedFile, the local writable file will be replaced by the checkout file when the event calling this method is fired.
If bdoiEnumModifiedFileHandling= enumSkipWritableFile, the local writable file will be skipped when the event calling this method is fired.
If bdoiEnumModifiedFileHandling= enumMergeWritableFile, the local writable file and the checkout file will be merged when the event calling this method is fired.
See Also