IMetabase.Bind

Syntax

Bind(Key: Integer): IMetabaseObject;

Bind(Key: uinteger): Prognoz.Platform.Interop.Metabase.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;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Name: String;
Begin
    MB := Params.Metabase;
    MObj := MB.Bind(
345);
    Name := MObj.Name;
End Sub;

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

See also:

IMetabase