IMetabaseObjectDescriptor.Parent

Syntax

Parent: IMetabaseObjectDescriptor;

Parent: Prognoz.Platform.Interop.Metabase.IMetabaseObjectDescriptor;

Description

The Parent property returns description of the object-owner.

Example

Executing the example requires that the repository contains an object with the Obj111 identifier.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    Desc, ParentDesc: IMetabaseObjectDescriptor;
Begin
    MB := MetabaseClass.Active;
    Desc := Mb.ItemById(
"obj111");
    ParentDesc := Desc.Parent;
End Sub UserProc;
Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Desc, ParentDesc: IMetabaseObjectDescriptor;
Begin
    MB := Params.Metabase;
    Desc := Mb.ItemById[
"obj111"];
    ParentDesc := Desc.Parent;
End Sub;

After executing this example the ParentDesc variable contains description of the object-owner of the object with the obj111 identifier.

See also:

IMetabaseObjectDescriptor