Within a DevForce entity, every property has a GetterInterceptor and a SetterInterceptor. These interceptors can be used to add or remove the AddAction actions associated with that property. Under the covers this is going through the PropertyInterceptorManager mechanism, but the syntax is often simpler. For example:
C# | Employee.PropertyMetadata.Title.GetterInterceptor.AddAction( IbCore.PropertyInterceptorTiming.Before, args => args.Value = args.Value.ToUpper()); |
VB | Employee.PropertyMetadata.Title.GetterInterceptor.AddAction( _ IbCore.PropertyInterceptorTiming.Before, Function(args) _ args.Value = args.Value.ToUpper()) |