IMetabaseObjectDescriptor.Link

Syntax

Link: IMetabaseObjectDescriptor;

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

Description

The Link property determines connection of this object with the object that has "Repository Connection" type.

Example

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

Add a link to the Metabase system assembly.

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

If the object with the ObjTest identifier is in another repository, after executing this example the Desc variable contains the description of this object, the Desc1 variable contains description of the object that connects with another repository.

See also:

IMetabaseObjectDescriptor