WPF - 将字符串设置为星号(所有内容)

时间:2017-10-07 20:58:59

标签: wpf asterisk

我有一个rpcservice,我可以查询项目,但现在我想查询容器的名称与容器上的位置。 喜欢: 表有2个位置:A侧= 321323;和B方= 321324 现在我有itemId和我的命令定义的一切,但它的工作原理 只有在给出itemId的情况下,如果我只是将*作为itemId放在网边 它加载一切。使用查询,如果我将itemId设置为*并运行它的方法 想要开始找到名为= *

的itemId

我的第一种方法是:

        Command_queryItem cmd = new Command_queryItem();
        cmd.itemId = "*";
        cmd.locationInContainer = query.Text;
        res.Text = rpc.executeCommand(cmd.GetCommand, cmd.GetParameters);

所以我做了一个新的:

        Command_queryItem cmd = new Command_queryItem();
        char[] fff = new char[0];
        fff[0] = '*';
        cmd.itemId = fff.ToString();
        cmd.locationInContainer = query.Text;
        res.Text = rpc.executeCommand(cmd.GetCommand, cmd.GetParameters);

但它仍然无效。有任何想法吗? 提前谢谢!

0 个答案:

没有答案