online source control
back to content
sign up free version control plan

SAWHSDK::promptUndoCheckoutChangedFile

Description

Prompts the handling option when undoing checkout of  a file whose local copy is changed.

Syntax

void promptUndoCheckoutChangedFile(
        BaseDataObject bdoiEnumUndoCheckOutChangedFileHandling,
        BaseDataObject bdobApplyToAllItem,
        String strInfo
);

Parameters

bdoiEnumUndoCheckOutChangedFileHandling
[in] Specifies 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
[in] Specifies whether to apply the handling option to all items.

StrInfo
[out] Returns the prompt information when checking in or undoing checkout of a changed file. For example, "File D:\help.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