Session.FileTransferred Event

Occurs when file is transferred, as part of either Session.GetFiles, Session.PutFiles or Session.SynchronizeDirectories.

Syntax

C#
public delegate void FileTransferredEventHandler(
    object sender,
    TransferEventArgs e
);
public event FileTransferredEventHandler FileTransferred;
VB.NET
Public Delegate Sub FileTransferredEventHandler(
    sender As Object,
    e As TransferEventArgs
)
Public Custom Event FileTransferred As FileTransferredEventHandler

Remarks

See TransferEventArgs.

Advertisement

Note that the same TransferEventArgs passed by this event is returned in the results of the Session.GetFiles, Session.PutFiles and Session.SynchronizeDirectories.

Example

See example for Session.SynchronizeDirectories.