指定したスキームとホスト名およびパス名を持つリモートサーバからローカル ファイルにデータをダウンロードします。
[Visual Basic]
Public Function HttpDownloadFile(ByVal scheme As String, ByVal remoteHost As String, _
ByVal remotePath As String, ByVal localFileName As String) As Boolean
[C#]
public bool HttpDownloadFile(string scheme, string remoteHost, string remotePath,
string localFileName);

パラメータ

scheme
インターネット アクセス プロトコル("http" or "https")
remoteHost
DNS スタイルのドメイン名、または IP アドレス
remotePath
リモート パスの名称
localFileName
ローカル ファイルの名称

戻り値

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

解説

HTTP , HTTPS プロトコルの場合に有効です。

使用例

[Visual Basic.NET]
Dim Ret As Boolean
'ユーザ名とパスワード
ImageKit.File.HttpCredentials = New NetworkCredential("user", "password")
'ファイルのダウンロード
Ret = ImageKit.File.HttpDownloadFile("http", "www.newtone.co.jp", "test/test.jpg", @"c:\test\test.jpg")

[Visual C#.NET]
bool Ret;
//ユーザ名とパスワード
ImageKit.File.HttpCredentials = new NetworkCredential("user", "password");
//ファイルのダウンロード
Ret = ImageKit.File.HttpDownloadFile("http", "www.newtone.co.jp", "test/test.jpg", @"c:\test\test.jpg");

参照

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