在 WFF 中以编程方式创建规则 [英] Creating rules programmatically in WFF
本文介绍了在 WFF 中以编程方式创建规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在不使用规则集编辑器的情况下在 Windows Workflow Foundation 中创建规则.也许我没有在谷歌上搜索足够多,但我找不到任何这样的例子.
i need to create rule in Windows Workflow Foundation without using RuleSet editor. Maybe i didnt search enough on google but i cant find any examle of this.
期望结果示例:
var ra = new List<RuleAction>();
ra.Add(new RuleAction());
var rc = new RuleCondition();
var rule = new Rule("test", rc, ra, null);
先谢谢了
推荐答案
我认为这篇博文回答了您的问题:以编程方式创建 Windows 工作流规则
I think this blog-post answers your question: Programmatically Create Windows Workflow Rules
这篇关于在 WFF 中以编程方式创建规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文