Skip to content

服务端命令选择属性

此特性为活字格V9.0.100.0新增功能

csharp
    public class MyPluginCommand : Command
    {
        [ServerCommandNameProperty]
        public string MyProperty { get; set; }
    }

在设计器中效果如下

1693550357082-31dcf9e7-88fd-433d-a1de-a949a05b3d4a.png

注意,标注ServerCommandNameProperty的属性类型必须是 string

更新: 2023-11-02 09:48:22
原文: https://www.yuque.com/robert-bh51n/ea8l6c/itmyapgf9942thq8