指定したホスト名とパス名およびポート番号を持つリモートサーバのファイル名を変更します。
[Visual Basic]
Public Function FtpRenameFile(ByVal remoteHost As String, ByVal oldRemotePath As String, _
ByVal remotePort As Integer, ByVal newRemotePath As String) As Boolean
[C#]
public bool FtpRenameFile(string remoteHost, string oldRemotePath, int remotePort,
string newRemotePath);

パラメータ

remoteHost
DNS スタイルのドメイン名、または IP アドレス
oldRemotePath
変更前のリモート パスの名称
remotePort
IP ポート番号
newRemotePath
変更後のリモート パスの名称

戻り値

成功の場合は true 、失敗の場合は false を返します。

解説

FTP プロトコルの場合に有効です。

使用例

[Visual Basic.NET]
Dim Ret As Boolean
'ユーザ名とパスワード
ImageKit.File.FtpCredentials = New NetworkCredential("user", "password")
'ファイル名の変更
Ret = ImageKit.File.FtpRenameFile("www.newtone.co.jp", "test/test.jpg", 21, "test/test1.jpg")

[Visual C#.NET]
bool Ret;
//ユーザ名とパスワード
ImageKit.File.FtpCredentials = new NetworkCredential("user", "password");
//ファイル名の変更
Ret = ImageKit.File.FtpRenameFile("www.newtone.co.jp", "test/test.jpg", 21, "test/test1.jpg");

参照

ImageKit.File メンバ | Newtone.ImageKit.WPF.ImageKit