Updates the object class. The ID property identifies the object class to modify.
Visual Basic |
---|
Public Sub UpdateObjectClassAdmin( _ ByVal ObjectClass As ObjectClassAdmin _ ) |
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.