Bind(Key: Integer): IMetabaseObject;
Bind(Key: uinteger): Prognoz.Platform.Interop.Metabase.IMetabaseObject;
Key. Repository object key.
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.
Add a link to the Metabase system assembly.
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: