IMetabaseObjectDescriptor.IsLink

Syntax

IsLink: Boolean;

Description

The IsLink property returns whether this object is in another repository.

Comments

This property is relevant for shortcuts that refer to the objects from another repository. The object, to which the shortcut refers, will be available after opening the shortcut in the IMetabaseObjectInstance.Object property.

Example

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

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MDesc: IMetabaseObjectDescriptor;
    MInst: IMetabaseObjectInstance;
Begin
    MB := MetabaseClass.Active;
    MDesc := MB.ItemById("ObjTest");
    If MDesc.IsLink Then
        MInst := MDesc.Open(Null);
        Debug.WriteLine(MInst.Object.Id);
    End If;
End Sub UserProc;

After executing the example, if the specified object is a shortcut for the object from another repository, the development environment console displays identifier of the object, to which this shortcut refers.

See also:

IMetabaseObjectDescriptor