GetObjectClassesAndGroups
Gets all object classes and groups.
Syntax
// Assumes shellUI has been initialized with IShellUI instance
const results =
await shellUI.Vault.PropertyDefsOperations.GetObjectClassesAndGroups({
call_importance: 2 /* Enum: CallImportance */,
known_version: 0,
});
Message
Name | Description | Type |
---|---|---|
call_importance | The importance level of this call. Typically eciNormal. | CallImportance |
known_version | The version ID of the classes collection currently known by the caller. If the classes collection has not been updated since, *pi64CurrentClassesVersionOnServer is set to this same number and no data is returned. Specify zero to force the retrieval of values. | number |
Return type
Name | Description | Type |
---|---|---|
current_version | Receives the current version of the classes collection on the server. If this is the same as the one specified by the caller, no data is returned. | number |
classes | Results as JSON array (Represented by CMF_Class struct array). | ObjectClass[] |
class_groups | Results as JSON array (Represented by CMF_DocClassGroup struct array). | ClassGroup[] |
Example
{
"current_version": 0,
"classes": [] /* Array of ObjectClass */,
"class_groups": [] /* Array of ClassGroup */
}