M-Files API 23.11.13135.0
UpdateObjectClassAdmin Method
VaultClassOperations Object : UpdateObjectClassAdmin Method
The class object to update.
Description
Updates the object class. The ID property identifies the object class to modify.
Syntax
Visual Basic
Public Sub UpdateObjectClassAdmin( _
   ByVal ObjectClass As ObjectClassAdmin _
) 
Parameters
ObjectClass
The class object to update.
Remarks

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

You have to explicitly set all the AssociatedPropertyDefs properties for the ObjectClassAdmin object as the properties are not directly copied from the corresponding ObjectClass object. In other words, properties not set for the ObjectClassAdmin object are not included in the class. As a test, you can make a working script with a very simple example class that only has the Name and title property definition.

In your solution, always build the entire AssociatedPropertyDefs list during an object class update.

See Also

VaultClassOperations Object  | VaultClassOperations Members