FindById(Id: String): IMetabaseDefinition;
Id. Repository description identifier.
The FindById method searches for repository description, which identifier is sent by input parameter.
If the search is successful, the method returns the parameters of the repository description, if not, it returns Null.
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: