M-Files API 22.3.11184.0
UpdateMetadataInFile Method
VaultObjectFileOperations Object : UpdateMetadataInFile Method
The object whose file or files to update.

The file to be updated. Specify -1 to update all files in the object.

Note that the method updates the metadata embedded in Microsoft Word and Microsoft Excel files only.
If this is set to "true", an error is displayed in cases where files whose embedded metadata cannot be updated are encountered.
Description
Updates metadata embedded in the specified file.
Syntax
Visual Basic
Public Function UpdateMetadataInFile( _
   ByVal ObjVer As ObjVer, _
   Optional ByVal File As Long = -1, _
   Optional ByVal FailOnUnsupportedFiles As Boolean = False _
) As ObjectVersion
Parameters
ObjVer
The object whose file or files to update.
File

The file to be updated. Specify -1 to update all files in the object.

Note that the method updates the metadata embedded in Microsoft Word and Microsoft Excel files only.
FailOnUnsupportedFiles
If this is set to "true", an error is displayed in cases where files whose embedded metadata cannot be updated are encountered.
See Also

VaultObjectFileOperations Object  | VaultObjectFileOperations Members