Event Data
The event handler receives an argument of type MultipleFileTransferErrorEventArgs containing data related to this event. The following MultipleFileTransferErrorEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Action | Gets or sets a value indicating the action to take for the file failed to be transferred during a multiple-file transfer. |
Exception | Gets the exception that was thrown while attempting to transfer a file during a multiple-file transfer. |
LocalItemName | Gets the local path and name of the item that failed to be transferred during a multiple-file transfer. |
RemoteItemName | Gets the remote name of the item that failed to be transferred during a multiple-file transfer. |
RemoteItemType | Gets or sets the type of the remote item which failed to be transferred during a multiple-file transfer. |
Remarks
This event can only be raised by the SendMultipleFiles or ReceiveMultipleFiles methods.
Example
The following example demonstrates how to use the MultipleFileTransferError event to continue downloading during the multiple-file transfer even when one of the files causes an error. This example assumes that you are in a Windows application and that the form contains a listbox.
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