Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Registering an Event Handler

Again, this is a PowerShell, not a WinSCP question.
I'm not a PowerShell expert, but what you pass to the add_* method is a script block. The script block can contain anything, function call, method call, or even a complete implementation.
aksarben

Registering an Event Handler

After reading the description of $session.add_FileTransferProgress, I had a question:

Does an event handler have to be a standalone function, or can it be a method inside a class?