Share via


SimpleWorkerRequest.SendResponseFromFile 方法

定義

將檔案的內容加入回應。

多載

SendResponseFromFile(IntPtr, Int64, Int64)

將具有指定控制代碼的檔案內容加入回應,並指定檔案中的開始位置和要傳送的位元組數目。

SendResponseFromFile(String, Int64, Int64)

將具有指定名稱的檔案內容加入回應,並指定檔案中的開始位置和要傳送的位元組數目。

SendResponseFromFile(IntPtr, Int64, Int64)

將具有指定控制代碼的檔案內容加入回應,並指定檔案中的開始位置和要傳送的位元組數目。

public:
 override void SendResponseFromFile(IntPtr handle, long offset, long length);
public override void SendResponseFromFile (IntPtr handle, long offset, long length);
override this.SendResponseFromFile : nativeint * int64 * int64 -> unit
Public Overrides Sub SendResponseFromFile (handle As IntPtr, offset As Long, length As Long)

參數

handle
IntPtr

nativeint

要傳送的檔案控制代碼。

offset
Int64

檔案中的開始位置。

length
Int64

要傳送的位元組數。

適用於

SendResponseFromFile(String, Int64, Int64)

將具有指定名稱的檔案內容加入回應,並指定檔案中的開始位置和要傳送的位元組數目。

public:
 override void SendResponseFromFile(System::String ^ filename, long offset, long length);
public override void SendResponseFromFile (string filename, long offset, long length);
override this.SendResponseFromFile : string * int64 * int64 -> unit
Public Overrides Sub SendResponseFromFile (filename As String, offset As Long, length As Long)

參數

filename
String

要傳送的檔案名稱。

offset
Int64

檔案中的開始位置。

length
Int64

要傳送的位元組數。

適用於