M-Files API 23.11.13135.0
AddPropertyDefAdmin Method
VaultPropertyDefOperations Object : AddPropertyDefAdmin Method
The property definition object to add.

A new Last Used value for an autonumbering property (if not Null).

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

Description
Adds a new property definition. Returns the created property definition, with the ID property set to the real ID value.
Syntax
Visual Basic
Public Function AddPropertyDefAdmin( _
   ByVal PropertyDefAdmin As PropertyDefAdmin, _
   Optional ByVal ResetLastUsedValue As TypedValue = 0 _
) As PropertyDefAdmin
Parameters
PropertyDefAdmin
The property definition object to add.
ResetLastUsedValue

A new Last Used value for an autonumbering property (if not Null).

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

Remarks
This method is available only if M-Files API is used in the server interface mode.
See Also

VaultPropertyDefOperations Object  | VaultPropertyDefOperations Members