public static RuleSetInfoCollection GetNamedRuleSets(string name) { RuleSetInfoCollection namedRuleCollection = new RuleSetInfoCollection(); Microsoft.BizTalk.RuleEngineExtensions.RuleSetDeploymentDriver dd = new Microsoft.BizTalk.RuleEngineExtensions.RuleSetDeploymentDriver(); RuleSetInfoCollection ruleCollection = dd.GetDeployedRuleSets(); foreach (RuleSetInfo rule in ruleCollection) { if (rule.Name == name) { namedRuleCollection.Add(rule); } } return(namedRuleCollection); }
public static RuleSetInfoCollection GetDeployedRuleSets() { Microsoft.BizTalk.RuleEngineExtensions.RuleSetDeploymentDriver dd = new Microsoft.BizTalk.RuleEngineExtensions.RuleSetDeploymentDriver(); return(dd.GetDeployedRuleSets()); }