SAWVSDK::promptUndoCheckoutChangedFile
Sets the handling option when you attempt to undo checkout of a file and the local copy of the file is changed.
Syntax
public void promptUndoCheckoutChangedFile(
BaseDataObject bdoiEnumUndoCheckOUtChangedFileHandling,
BaseDataObject bdobApplyToAllItem,
String strInfo
);
Parameters
bdoiEnumUndoCheckOutChangedFileHandling
Returns how to handle the local copy of the file, leaving the
local file or replacing the local file with the current version on server.
bdobApplyToAllItem
Returns whether to apply the
handling option to all items.
StrInfo
Returns the prompt information when you attempt to check in or undo checkout a
changed file. For example, "File D:\SAWVhelp.txt
has not been changed. Do you want to create new version of the file in server?"
Return Value
None.
Remarks
If bdoiEnumUndoCheckOutChangedFileHandling = enumCancelUndoCheckOutChangedFile, the checkout operation will be canceled when the event calling this method is fired.
If bdoiEnumUndoCheckOutChangedFileHandling = enumAskUndoCheckOutChangedFile, a warning dialog will pop up asking how to handle the changed file when the event calling this method is fired.
If bdoiEnumUndoCheckOutChangedFileHandling = enumUndoCheckOutChangedFile, the checkout of the changed file will be undone when the event calling this method is fired.
If bdoiEnumUndoCheckOutChangedFileHandling = enumNotUndoCheckOutChangedFile, the checkout status of the file will be kept when the event calling this method is fired.
See Also