M-Files API 23.11.13135.0
AddFile Method
VaultObjectFileOperations Object : AddFile Method
The object version that identifies the object.
The title of the new file in M-Files.
The extension of the new file in M-Files.
The absolute path of a source file.
Description
Adds a new file to the specified object based on the given path.
Syntax
Visual Basic
Public Function AddFile( _
   ByVal ObjVer As ObjVer, _
   ByVal Title As String, _
   ByVal Extension As String, _
   ByVal SourcePath As String _
) As FileVer
Parameters
ObjVer
The object version that identifies the object.
Title
The title of the new file in M-Files.
Extension
The extension of the new file in M-Files.
SourcePath
The absolute path of a source file.
Remarks

This method adds a new file to a multi-file object. If the specified object is a single-file object, this method fails.

See Also

VaultObjectFileOperations Object  | VaultObjectFileOperations Members