Share via


HttpWorkerRequest.SendResponseFromFile 方法

定義

將檔案的內容加入回應。

多載

SendResponseFromFile(IntPtr, Int64, Int64)

將指定檔案的內容加入回應,並且指定檔案裡的開始位置和傳送的位元組數目。

SendResponseFromFile(String, Int64, Int64)

將指定檔案的內容加入回應,並且指定檔案裡的開始位置和傳送的位元組數目。

SendResponseFromFile(IntPtr, Int64, Int64)

將指定檔案的內容加入回應,並且指定檔案裡的開始位置和傳送的位元組數目。

public:
 abstract void SendResponseFromFile(IntPtr handle, long offset, long length);
public abstract void SendResponseFromFile (IntPtr handle, long offset, long length);
abstract member SendResponseFromFile : nativeint * int64 * int64 -> unit
Public MustOverride Sub SendResponseFromFile (handle As IntPtr, offset As Long, length As Long)

參數

handle
IntPtr

nativeint

要傳送的檔案控制代碼。

offset
Int64

檔案中的開始位置。

length
Int64

要傳送的位元組數。

適用於

SendResponseFromFile(String, Int64, Int64)

將指定檔案的內容加入回應,並且指定檔案裡的開始位置和傳送的位元組數目。

public:
 abstract void SendResponseFromFile(System::String ^ filename, long offset, long length);
public abstract void SendResponseFromFile (string filename, long offset, long length);
abstract member SendResponseFromFile : string * int64 * int64 -> unit
Public MustOverride Sub SendResponseFromFile (filename As String, offset As Long, length As Long)

參數

filename
String

要傳送的檔案名稱。

offset
Int64

檔案中的開始位置。

length
Int64

要傳送的位元組數。

適用於