2

我需要下一个代码的帮助,该代码会引发异常 Error emitting 'System.Runtime.InteropServices.GuidAttribute' attribute -- 'Incorrect UUID format.'

[GuidAttribute(Discover.CLASS_DiscoverPlugin)]
public class Discover : TCustomDiscoverPlugin
{

    public const string CLASS_TenderDialogePlugin = "{CB19D13D-C194-49f1-B1A0-75B49283CFC8}";
    public const string CLASS_DiscoverPlugin = "{6111098C-B821-432d-9EC3-146BF5D1C276}";

    public override Object PluginGUIDs()
    {
        string[] classIDs = new string[1];
        classIDs[1] = CLASS_TenderDialogePlugin;
        return classIDs;
    }
}
4

1 回答 1

8

摆脱大括号 - 这编译没有问题:

[GuidAttribute("CB19D13D-C194-49f1-B1A0-75B49283CFC8")]

遗憾的是,没有记录接受的格式,请注意:(

于 2012-10-27T19:00:13.613 回答