SetModifiedBy(Vault, ObjVer, UserID)
Description
When modifying objects in an event handler, the object is shown as modified by (M-Files Server).
Use this the method to set the modifying user to the specified User ID.
Syntax
Sub SetModifiedBy(Vault As Vault, ObjVer As ObjVer, UserID As Object)
Parameters
|
Name |
Data Type |
Description |
|
Vault |
The Vault object provided by the event handler. |
|
|
ObjVer |
ObjVer of object to process. This could be provided by the event handler or created dynamically using CreateObject("MFilesAPI.ObjVer"). |
|
|
UserID |
Integer or TypedValue |
The ID of the desired modifying user. |
Return
No return value.
Example
'create ExcitechDOCS DWG Processor object
Set dwgProcessor = GetExtensionObject("ExcitechDOCS.DWGProcessor")
'set modifying user
dwgProcessor.SetModifiedBy Vault, ObjVer, CurrentUserID