IsLink: Boolean;
The IsLink property returns whether this object is in another repository.
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 Object property.
Executing the example requires that the repository contains an object with the SHORTCUT_1 identifier.
Sub Main;
Var
MB: IMetabase;
MDesc: IMetabaseObjectDescriptor;
MInst: IMetabaseObjectInstance;
Begin
MB := MetabaseClass.Active;
MDesc := MB.ItemById("SHORTCUT_1");
If MDesc.IsLink Then
MInst := MDesc.Open(Null);
Debug.WriteLine(MInst.Object.Id);
End If;
End Sub Main;
After executing this example, if the SHORTCUT_1 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: