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

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

Parameters

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

Type Parameters

TProperty

Return Value

Type: PropertySettingsTParent
See Also