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 refer will be available after opening of 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 ObjTest object is a shortcut for the object from another repository, the identifier of the object to which this shortcut refers, is displayed in the development environment console.

See also:

IMetabaseObjectDescriptor