M-Files API 23.11.13135.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.
Remarks
This method is available only if M-Files API is used in the server interface mode.
See Also

VaultObjectFileOperations Object  | VaultObjectFileOperations Members