A Sandcastle Documented Class Library
Download メソッド (aSourceFileName, aDestinationFileName, aResponse)
名前空間CFW.AspxCommonHttpFileDownload(String, String, HttpResponse)
ファイルのダウンロード
宣言の構文
C#Visual BasicVisual C++
public int Download(
	string aSourceFileName,
	string aDestinationFileName,
	HttpResponse aResponse
)
Public Function Download ( _
	aSourceFileName As String, _
	aDestinationFileName As String, _
	aResponse As HttpResponse _
) As Integer
public:
int Download(
	String^ aSourceFileName, 
	String^ aDestinationFileName, 
	HttpResponse^ aResponse
)
パラメータ
aSourceFileName (String)
ダウンロードする実体
aDestinationFileName (String)
クライアントに表示するファイル名
aResponse (HttpResponse)
ダウンロード本体のHttpResponse
戻り値
送信バイト数
使用例
CopyC#
//サーバー上の"c:\document.txt"を"userfile.txt"としてダウンロードさせる
HttpFile httpFile = new HttpFile();
int rc = httpFile.Download("c:\document.txt","userfile.txt",this.Request);

アセンブリ: CFW.common.AspxCommon (モジュール: CFW.common.AspxCommon) バージョン: 1.2.0.1 (1.2.0.1)