IMetabaseDefinitions.FindById

Syntax

FindById(Id: String): IMetabaseDefinition;

Parameters

Id - an identifier of the repository description.

Description

The FindByKey method searches the repository description, the identifier of which is passed by the Id parameter.

If the search is successful, the method returns the parameters of the repository description, if not, it returns Null.

Example

Sub Main;

Var

Man: IMetabaseManager;

Defs: IMetabaseDefinitions;

Def: IMetabaseDefinition;

Begin

Man := MetabaseManagerFactory.Active;

Defs := Man.Definitions;

Def := Defs.FindById("TestDefinition");

If Def <> Null Then

Defs.RemoveById("TestDefinition");

End If;

End Sub Main;

After executing the example if there is the repository description with the TestDefinition identifier, this description is removed.

See also:

IMetabaseDefinitions