# TransferState

TransferState Enum

The state of a TransferItem

Fields

Waiting | 0 | Waiting to be transfered
Running | 1 | Transferring
Queue | 2 | Waitting in the queue, won't start automatically until next time you start processing the queue.
TryAgain | 3 | There was an error in the last transfer and now is retrying again
Cancelled | 4 | Cancelled
Failed | 5 | Failed
Skipped | 6 | Skipped
Succeed | 7 | Succeed

Examples

// Create a demo server Server demo_server = new Server { Host = "demo.wftpserver.com", Username = "demo", Password = "demo" }; TransferItem faildItem = new TransferItem { SourceServer = demo_server, TargetServer = Server.Local, SourceName = "/download/Autumn.jpg", TargetName = "~Documents/Autumn.jpg", TransferType = TransferType.TransferFile, TransferState = TransferState.Failed, }; Transfer.Add(faildItem); // Add to the failed transfer list TransferItem queueItem = new TransferItem { SourceServer = demo_server, TargetServer = Server.Local, SourceName = "/download/Autumn.jpg", TargetName = "~Documents/Autumn.jpg", TransferType = TransferType.TransferFile, TransferState = TransferState.Queue, }; Transfer.Add(queueItem); // Won't start automatically

See Also

- TransferItem
- Transfer
- Server