Artificial Intelligence
Artificial Intelligence
Information

KnowledgeBase.GetRuleById(int) method


      Returns an object of the Rule class specified by its identifier.


Namespace : ielib
Assembly : ielib.dll

public Rule GetRuleById(int Id)

Parameters

Type : System.Int32.

Id : represents the ID of a rule.

Return value

Type : ielib.Rule

The object of the Rule class that has the identifier specified is found, otherwise null


      Note : The ID of a rule is distributed by the RulesBase class when KnowledgeBase.Add(Rule) method is used to add a rule to the knowledge base. Gets the ID of a rule by the Rule.Id property.