ReadOnlyMacroObjectWrapperTObjectRegisterColumnColumnType Method (String, FuncTObject, Object, FuncTObject, Object, Object) |
Registers the given Column to the object
Namespace: CMS.MacroEngineAssembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 10.0.0
Syntax protected PropertySettings<ReadOnlyMacroObjectWrapper<TObject>> RegisterColumn<ColumnType>(
string columnName,
Func<TObject, Object> lambdaExpr,
Func<TObject, Object, Object> setLambdaExpr
)
where ColumnType : new()
Parameters
- columnName
- Type: SystemString
Column name - lambdaExpr
- Type: SystemFuncTObject, Object
Lambda expression for the getter of the property (object, parameter) => return value - setLambdaExpr
- Type: SystemFuncTObject, Object, Object
Lambda expression for the setter of the property (object, parameter, value) => set
Type Parameters
- ColumnType
Return Value
Type:
PropertySettingsReadOnlyMacroObjectWrapperTObjectSee Also