IMetabase.CreateObject

Syntax

CreateObject(Info: IMetabaseObjectCreateInfo): IMetabaseObjectDescriptor;

CreateObject(Prognoz.Platform.Interop.Metabase.IMetabaseObjectCreateInfo): Prognoz.Platform.Interop.Metabase.IMetabaseObjectDescriptor;

Parameters

Info. Information about created object.

Description

The CreateObject method creates a new object, basing on the information that is passed the Info input parameter.

Comments

This method is used to create almost all objects of the platform. In certain cases it is called automatically, for example, to create necessary child objects.

Specialized methods, that should be used instead of the CreateObject method, are implemented for creating several objects. List of objects, their class, and specialized methods are given below:

Object Object class Method for object creating
Global parameters KE_CLASS_SHAREDPARAMS ISpecialObjects.Operation
Custom classes container KE_CLASS_CUSTOM_EXTENDER ISpecialObjects.Operation

Example

The method use is given in the example forIMetabase.CreateCreateInfo.

See also:

IMetabase