Operation(Oper: MetabaseObjectOperation; Index: MetabaseSpecialObject): IMetabaseObjectDescriptor;
Oper. The operation that should be executed with the special object.
Index. The special object, with which the operation should be executed.
The Operation method executes the specified operation with the special repository object.
This method is used to work with the following special objects:
Global variables.
Custom classes container.
The Operation method is called automatically when working with global variables and custom classes containers in the object navigator. When working in new repositories it is not recommended to use the IMetabase.CreateObject method to create a new custom classes container or area of global variables, the appropriate objects of the MetabaseObjectClass.KE_CLASS_CUSTOM_EXTENDER and MetabaseObjectClass.KE_CLASS_SHAREDPARAMS classes. Use this method instead with the MetabaseObjectOperation.Create parameter or with the MetabaseObjectOperation.CreateAndEdit parameter.
If the user calls the method with the MetabaseObjectOperation.Create parameter or with the MetabaseObjectOperation.CreateAndEdit parameter in the repository where the custom classes container and area of global variables exist, it results in receiving the corresponding existing object.
See also: