M-Files API 23.11.13135.0
RenameFile Method
VaultObjectFileOperations Object : RenameFile Method
The object version identifier.
The file version identifier.
The new title (the file name without the extension) for the file.
The new extension for the file.
If this parameter is True, the single-file document object name should be renamed to match the new file name.
Description
Renames the given file.
Syntax
Visual Basic
Public Function RenameFile( _
   ByVal ObjVer As ObjVer, _
   ByVal FileVer As FileVer, _
   ByVal Title As String, _
   ByVal Extension As String, _
   Optional ByVal UpdateSingleFileDocumentTitle As Boolean = True _
) As ObjectVersion
Parameters
ObjVer
The object version identifier.
FileVer
The file version identifier.
Title
The new title (the file name without the extension) for the file.
Extension
The new extension for the file.
UpdateSingleFileDocumentTitle
If this parameter is True, the single-file document object name should be renamed to match the new file name.
See Also

VaultObjectFileOperations Object  | VaultObjectFileOperations Members