Back to product page

LastError property


Holds last error that occurred, if any.

Type

System.Exception.

Syntax

  • C#
  • VB.NET
Exception LastError {get; };

ReadOnly Property LastError As Exception

Remarks

LastError property is useful when wodSFTP.NET is used in blocking mode. In such cases, it is inconvenient to track events (or it's impossible to handle events) so potential errors can no be obtained. For this purpose, after each method call, LastError property will contain potential Exception that occurred, or will hold null value if there were no errors.

Platforms

Windows