Renames file or directory to the new specified name.
![](../icons/collapse_all.gif)
C# | Visual Basic | Visual C++ | F# |
public void Rename( string fromPath, string toPath )
Public Sub Rename ( fromPath As String, toPath As String )
public: void Rename( String^ fromPath, String^ toPath )
member Rename : fromPath : string * toPath : string -> unit
![](../icons/collapse_all.gif)
Exception | Condition |
---|---|
ObjectDisposedException | Is raised when this object is disposed and this method is accessed. |
InvalidOperationException | Is raised when FTP client is not connected. |
ArgumentNullException | Is raised when fromPath or toPath is null. |
ArgumentException | Is raised when any of the arguments has invalid value. |
FTP_ClientException | Is raised when FTP server returns error. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119