The Inactivate operation temporarily disables the state of a container object to ensure that any type of operation cannot be performed on the object.
// Inactivates or activates a record category
public void inActivate(ActivableObject aoObj, boolean abInactive, String asReasonForInactivate)
{
aoObj.inActivate(abInactive, asReasonForInactivate);
}
When a container object is in an inactive state, you cannot add child objects to the container object. For example, if a RecordCategory object is inactivated, you cannot add child record categories, record folders, or records to the object. Additionally, if a parent object is inactivated, all the child objects within the parent object are also inactivated. For example, if you inactivate a RecordCategory object, all the RecordFolder and Volume objects present within the record category are also inactivated. To add child objects to an inactive object, you must first activate it.
For information about simultaneously inactivating multiple objects, refer to Performing bulk operations.