M-Files API 22.6.11519.0
CreateNewEmptySingleFileDocument Method
VaultObjectOperations Object : CreateNewEmptySingleFileDocument Method
The collection of the property values for the new object.
The object title, which is also used as the file name for the document file.
The file extension for the document file.

The access control list for the new object.

In scripting languages, a specific null value (e.g., Nothing in VBScript) should be used to indicate the default value.

Description
Creates a new single-file document based on the specified properties and source files.
Syntax
Visual Basic
Public Function CreateNewEmptySingleFileDocument( _
   ByVal PropertyValues As PropertyValues, _
   ByVal Title As String, _
   ByVal Extension As String, _
   Optional ByVal AccessControlList As AccessControlList = 0 _
) As ObjectVersionAndProperties
Parameters
PropertyValues
The collection of the property values for the new object.
Title
The object title, which is also used as the file name for the document file.
Extension
The file extension for the document file.
AccessControlList

The access control list for the new object.

In scripting languages, a specific null value (e.g., Nothing in VBScript) should be used to indicate the default value.

Remarks
Creates a new single-file document as an empty file. At a minimum, the property values collection needs to contain property values and other required property definitions for the object class.
See Also

VaultObjectOperations Object  | VaultObjectOperations Members  | CreateNewObject Method