|
PortController.NET
SendFileXModem1k Method
Sends a file using the XMODEM-1K protocol.
Syntax
[Visual Basic]
object.SendFileXModem1k(FileName)
[C#]
object.SendFileXModem1k(FileName)
[C++]
object->SendFileXModem1k(FileName)
Parameters
object
An object expression that evaluates to a PortController object.
FileName
A string containing an absolute or relative filename to be sent.
Return Value
None
Remarks
Errors
- If this method is called while a file transfer is already in progress, PortController throws a "Unable to begin file transfer because a transfer is already in progress." exception
- If the specified file cannot be found, PortController throws FileNotFoundException
- If an error occurs during the transfer, the OnFileTransferComplete event is fired
with the type of error
Example
[Visual Basic]
myPortController.SendFileXModem1k("C:\MySendFile.bin")
[C#]
myPortController.SendFileXModem1k("C:\\MySendFile.bin");
[C++]
myPortController->SendFileXModem1k("C:\\MySendFile.bin");
See Also
ReceiveFileXModem method | SendFileXModem method | CancelFileTransfer method |
OnFileTransferStatusUpdate event |
OnFileTransferComplete event
|