OnFileAction Method

MCManager API

Gets called after a file action was perforem for example after a rename or copy.

Namespace:  Moxiecode.Manager
Assembly:  MCManager (in MCManager.dll) Version: 1.0.0.0

Syntax

C#
public virtual bool OnFileAction(
	ManagerEngine man,
	FileAction action,
	IFile file1,
	IFile file2
)
Visual Basic (Declaration)
Public Overridable Function OnFileAction ( _
	man As ManagerEngine, _
	action As FileAction, _
	file1 As IFile, _
	file2 As IFile _
) As Boolean
Visual C++
public:
virtual bool OnFileAction(
	ManagerEngine^ man, 
	FileAction action, 
	IFile^ file1, 
	IFile^ file2
)

Parameters

man
Type: Moxiecode.Manager..::.ManagerEngine
ManagerEngine reference that the plugin is assigned to.
action
Type: Moxiecode.Manager.FileSystems..::.FileAction
File action type.
file1
Type: Moxiecode.Manager.FileSystems..::.IFile
File object 1 for example from in a copy operation.
file2
Type: Moxiecode.Manager.FileSystems..::.IFile
File object 2 for example to in a copy operation. Might be null in for example a delete.

Return Value

true/false if the execution of the event chain should continue execution.

Implements

IPlugin..::.OnFileAction(ManagerEngine, FileAction, IFile, IFile)

See Also