Xceed .NET Libraries Documentation
OnException(Exception,FileSystemItem,FileSystemItem) Method


Xceed.FileSystem Assembly > Xceed.FileSystem Namespace > FileSystemEventsSession Class > OnException Method : OnException(Exception,FileSystemItem,FileSystemItem) Method
Raises the ItemException event whenever an error occurs during the processing of a object.
Syntax
'Declaration
 
Public Overloads Function OnException( _
   ByVal except As Exception, _
   ByVal currentItem As FileSystemItem, _
   ByVal targetItem As FileSystemItem _
) As ItemExceptionAction
'Usage
 
Dim instance As FileSystemEventsSession
Dim except As Exception
Dim currentItem As FileSystemItem
Dim targetItem As FileSystemItem
Dim value As ItemExceptionAction
 
value = instance.OnException(except, currentItem, targetItem)

Parameters

except
currentItem
targetItem

Return Value

An ItemExceptionAction value representing the action to take.
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

FileSystemEventsSession Class
FileSystemEventsSession Members
Overload List