
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
When working with the Vault API I would like to get the prompts that comes with it. For instance when checking out a file (see the code below), I would expect a prompt to be displayed if for instance the local file is newer than than the one in the vault and is about to be overwritten:
File '{0}' is NEWER than the data in the Vault. Are you sure you want to overwrite it?
VDF.Vault.Settings.AcquireFilesSettings settings = new VDF.Vault.Settings.AcquireFilesSettings(connection);
if (!file.IsCheckedOut)
{
settings.DefaultAcquisitionOption = VDF.Vault.Settings.AcquireFilesSettings.AcquisitionOption.Checkout;
settings.OptionsResolution.ForceOverwrite = false;
settings.AddEntityToAcquire(file);
VDF.Vault.Results.AcquireFilesResults results = connection.FileManager.AcquireFiles(settings);
}
Thanks....
Solved! Go to Solution.