IMetabaseDefinitions.FindById

Syntax

FindById(Id: String): IMetabaseDefinition;

Parameters

Id. Repository description identifier.

Description

The FindById method searches for repository description, which identifier is sent by input parameter.

Comments

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

Example

Sub UserProc;
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 UserProc;

After executing the example if the manager contains description of the repository with the TestDefinition identifier, this description is removed.

See also:

IMetabaseDefinitions