封鎖 >序列化 >程序 >loadProcedure

serialization.procedures.loadProcedure() 函式

從 JSON 反序列化指定程序模型狀態。

Signature:

export declare function loadProcedure<ProcedureModel extends IProcedureModel, ParameterModel extends IParameterModel>(procedureModelClass: ProcedureModelConstructor<ProcedureModel>, parameterModelClass: ParameterModelConstructor<ParameterModel>, state: State, workspace: Workspace): ProcedureModel;

參數

參數 類型 說明
procedureModelClass ProcedureModelConstructor&lt;ProcedureModel&gt;
parameterModelClass ParameterModelConstructor&lt;ParameterModel&gt;
工作區 Workspace

傳回:

ProcedureModel