The Portrate Interview Engine

LogicRuleFactory.GetRule Method

Gets a rule with the given ID. Gets the rule class from the 'logicRules' configuration section in the engine configuration file. Can throw an exception if the creation of the logic rule fails.

Overload List

Gets a rule with the given ID. Gets the rule class from the 'logicRules' configuration section in the engine configuration file. Can throw an exception if the creation of the logic rule fails.

[Visual Basic] Public Function GetRule(ByVal String) As ILogicalRule
[C#] public ILogicalRule GetRule(string);
[C++] public: ILogicalRule* GetRule(String*);
[JScript] public function GetRule(String): ILogicalRule;

Returns the ILogicRule that is described by the given configuration element.

[Visual Basic] Public Function GetRule(ByVal XmlElement) As ILogicalRule
[C#] public ILogicalRule GetRule(XmlElement);
[C++] public: ILogicalRule* GetRule(XmlElement*);
[JScript] public function GetRule(XmlElement): ILogicalRule;

See Also

LogicRuleFactory Class | Portrate.Interview.Model.Rules Namespace