Click or drag to resize
RegisteredPropertiesTParentAddPropertyType Method (String, Object, FuncTParent, Object, Object, ActionTParent, Object, Object)
Registers the given parametrized property to the object.

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 12.0.0
Syntax
C#
public PropertySettings<TParent> Add<PropertyType>(
	string propertyName,
	Object parameter,
	Func<TParent, Object, Object> lambdaExpr,
	Action<TParent, Object, Object> setLambdaExpr
)
where PropertyType : new()

Parameters

propertyName
Type: SystemString
Property name
parameter
Type: SystemObject
Parameter for the lambda expression
lambdaExpr
Type: SystemFuncTParent, Object, Object
Lambda expression for the getter of the property (object, parameter) => return value
setLambdaExpr
Type: SystemActionTParent, Object, Object
Lambda expression for the setter of the property (object, parameter, value) => set

Type Parameters

PropertyType

Return Value

Type: PropertySettingsTParent
See Also