блочно > Процедуры > IProcedureMap > добавить
Метод Процедуры.IProcedureMap.add()
Добавляет данную ПроцедурнуюМодель на карту моделей процедур, чтобы блоки могли ее найти.
Подпись:
add(proc: IProcedureModel): this;
Параметры
Возврат:
этот
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-11-12 UTC.
[null,null,["Последнее обновление: 2024-11-12 UTC."],[[["The `add()` method incorporates a provided ProcedureModel into a map, enabling block elements to locate it."],["This method accepts an `IProcedureModel` object as input, representing the procedure to be added."],["Upon successful addition, the method returns the current `IProcedureMap` instance for chaining purposes."]]],["The `add` method within the `Procedures.IProcedureMap` interface adds a `ProcedureModel` to a map. This allows blocks to locate the procedure model. The method takes one parameter, `proc`, which is of type `IProcedureModel`. The method returns the instance of `Procedures.IProcedureMap` (`this`) to which the model was added. This method signature enables the addition of procedure models into a map for later use.\n"]]