Differences

This shows you the differences between the selected revisions of the page.

2012-01-27 2012-02-06
TransferOperationResult (martin) operationresult replaced by TransferOperationResult in example (martin)
Line 68: Line 68:
                transferOptions.TransferMode = TransferMode.Binary;                 transferOptions.TransferMode = TransferMode.Binary;
-                OperationResult<TransferEventArgs> transferResult;+                TransferOperationResult transferResult;
                transferResult = session.PutFiles(@"d:\toupload\*", "/home/user/", false, transferOptions);                 transferResult = session.PutFiles(@"d:\toupload\*", "/home/user/", false, transferOptions);
Line 75: Line 75:
                // Print results                 // Print results
-                foreach (TransferEventArgs transfer in transferResult.Operations)+                foreach (TransferEventArgs transfer in transferResult.Transfers)
                {                 {
                    Console.WriteLine("Upload of {0} succeeded", transfer.FileName);                     Console.WriteLine("Upload of {0} succeeded", transfer.FileName);

Last modified: by martin