コード例 #1
0
        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);
        }
コード例 #2
0
 public static RuleSetInfoCollection GetDeployedRuleSets()
 {
     Microsoft.BizTalk.RuleEngineExtensions.RuleSetDeploymentDriver dd = new Microsoft.BizTalk.RuleEngineExtensions.RuleSetDeploymentDriver();
     return(dd.GetDeployedRuleSets());
 }