IMetabase.Bind

Syntax

Bind(Key: Integer): IMetabaseObject;

Parameters

Key. Repository object key.

Description

The Bind method returns structure of the repository object, which key is passed by the Key input parameter.

The method returns Null if an object with the specified key does not exist.

Example

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Name: String;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.Bind(345);
    Name := MObj.Name;
End Sub UserProc;

After executing the example the Name variable contains a name of the repository object, which key is 345.

See also:

IMetabase