Autodesk Vault ProfessionalVault API

UndoCheckoutFile(FileIteration,FilePathAbsolute) Method

Autodesk.DataManagement.Client.Framework.Vault.Services.ConnectionIFileManager

Undoes a checkout operation on a file.

Syntax

FileIteration UndoCheckoutFile(
   FileIteration file,
   FilePathAbsolute localFilePath
)
Overloads Function UndoCheckoutFile( _
   ByVal file As FileIteration, _
   ByVal localFilePath As FilePathAbsolute _
) As FileIteration

Parameters

NameDescription
fileThe checked out file.
localFilePathThe location on disk to download the last-checked-in file.

Return Value

The file iteration representing the last-checked-in version of the file.

Remarks

This method will overwrite any file on disc currently at the location localFilePath, set the set the file's create time to that of the last-checked-in version, and make the local file read-only. If the localFilePath is the working folder location for the file, file references will be updated.

See Also