Click or drag to resize
ElementModelUtilityGetParameterValueTExpectedType Method
Reads the parameter's value based on a specific expected type

Namespace: FlexRule
Assembly: FlexRule.Core.Element (in FlexRule.Core.Element.dll) Version: 0.0.0.0 (0.0.0.0)
Syntax
C#
public static TExpectedType GetParameterValue<TExpectedType>(
	this IElementModel model,
	string parameterName,
	string firstChildLookupName,
	TExpectedType defaultValue = null
)

Parameters

model
Type: FlexRule.Core.ModelIElementModel
parameterName
Type: SystemString
firstChildLookupName
Type: SystemString
defaultValue (Optional)
Type: TExpectedType

Type Parameters

TExpectedType

Return Value

Type: TExpectedType

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IElementModel. 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