[]
Forguncy.Plugin.CommandFactory
提供注册自定义命令类型函数的帮助类。
• new CommandFactory()
▸ Static registerCommand(commandType, command): void
注册一个命令,将javascript命令类与C#命令类关联起来。
Example
Forguncy.CommandFactory.RegisterCommand("Namespace.ClassName, AssemblyName", customCommand);
// 表格数据传递命令插件需要注册如下:
Forguncy.CommandFactory.registerCommand("PassListviewDataCommand.PassListviewDataCommand, PassListviewDataCommand", PassListviewDataCommand);
| 属性名 | 类型 | 说明 |
|---|---|---|
commandType |
string |
命令的唯一标识符。标识符格式为: Namespace.ClassName, AssemblyName,使用 C# 命令类的Namespace,ClassName以及AssemblyName。 |
command |
any |
命令的构造器。 |
void