Visual Basic (Declaration) | |
---|---|
Public Overrides Property ExceptionAction As Action(Of Exception) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As PropertyInterceptorArgs(Of TInstance,TValue) Dim value As Action(Of Exception) instance.ExceptionAction = value value = instance.ExceptionAction |
C# | |
---|---|
public override Action<Exception> ExceptionAction {get; set;} |
C++/CLI | |
---|---|
public: property Action<Exception^>^ ExceptionAction { Action<Exception^>^ get() override; void set ( Action<Exception^>^ value) override; } |
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.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family