Description

Allows setting multiple properties on an ObjVer in a 'batch' this can be more efficient than setting each property individually or in a loop.

Syntax

Function SetMultipleProperties(Vault As Vault, ObjVer As ObjVer, Properties As PropertyList)

Parameters

Name

Data Type

Description

Vault

Vault

The Vault object provided by the event handler.

ObjVer

ObjVer

ObjVer of object to process. This could be provided by the event handler or created dynamically using CreateObject("MFilesAPI.ObjVer"). 

Properties

PropertyList

The list of properties and values to set

Return

ObjectVersionAndProperties that represents the updated ObjVer 

Example

'create Pentagon DOCS Script Library object

Set scriptLib = GetExtensionObject("PentagonDOCS.Core.ScriptLibrary")


Dim PropList : set PropList = scriptLib.NewPropertyListObject

PropList.Add "ExDOCS.Property.Watermark","NOT FOR CONSTRUCTION"


'set multiple properties

scriptLib.SetMultipleProperties Vault, ObjVer, PropList

See Also

PropertyList