Click or drag to resize
ActiveElementUtilityGetValueOfAttributeOrRef Method (ActiveElement, String, IElementModelParameterCollection, IVariableContainer, Boolean, Boolean)
Get the value from model`s parameters. If that value is a name of variable if the provided container it resolve the result with the container. Also it checks the container for '-ref' post fix of the attribute name.

Namespace: FlexRule
Assembly: FlexRule.Core.Element (in FlexRule.Core.Element.dll) Version: 0.0.0.0 (0.0.0.0)
Syntax
C#
public static Object GetValueOfAttributeOrRef(
	this ActiveElement activeElement,
	string attrName,
	IElementModelParameterCollection modelParameters,
	IVariableContainer container,
	bool nullIfNotExistParameter,
	bool nullIfNotExistVariable
)

Parameters

activeElement
Type: FlexRuleActiveElement
attrName
Type: SystemString
modelParameters
Type: FlexRule.Core.ModelIElementModelParameterCollection
container
Type: FlexRuleIVariableContainer
nullIfNotExistParameter
Type: SystemBoolean
nullIfNotExistVariable
Type: SystemBoolean

Return Value

Type: Object

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ActiveElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also