DevForce Help Reference
ExceptionAction Property (PropertyInterceptorArgs<TInstance,TValue>)


The handler to be invoked when an exception is thrown during a get or set.
Syntax
'Declaration
 
Public Overrides Property ExceptionAction As Action(Of Exception)
'Usage
 
Dim instance As PropertyInterceptorArgs(Of TInstance,TValue)
Dim value As Action(Of Exception)
 
instance.ExceptionAction = value
 
value = instance.ExceptionAction
public override Action<Exception> ExceptionAction {get; set;}
Remarks
You can use this to set a common handler for exceptions on a property or type basis, or even for all properties on all entities. Make sure that the PropertyInterceptorAction which sets the ExceptionAction is executed early within the getter or setter by setting the PropertyInterceptorAction.Order to a low value.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PropertyInterceptorArgs<TInstance,TValue> Class
PropertyInterceptorArgs<TInstance,TValue> Members

Send Feedback