Click or drag to resize

IRuleApiGetRulesByProduct Method

Get rules by product.

Namespace:  Casewhere.Runtime.DSL.Api
Assembly:  Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.1.0
Syntax
C#
IList<DslRule> GetRulesByProduct(
	string productName,
	string type
)

Parameters

productName
Type: SystemString
Name of product
type
Type: SystemString
Type of rule.

Return Value

Type: IListDslRule
Value return from rule expression
Examples
var ruleApi = ctx.Use<IRuleApi>();
ruleApi.GetRulesByProduct(type, productName);
See Also