แก้ไข

แชร์ผ่าน


HttpWorkerRequest.SendResponseFromFile Method

Definition

Adds the contents of a file to the response.

Overloads

SendResponseFromFile(IntPtr, Int64, Int64)

Adds the contents of the specified file to the response and specifies the starting position in the file and the number of bytes to send.

SendResponseFromFile(String, Int64, Int64)

Adds the contents of the specified file to the response and specifies the starting position in the file and the number of bytes to send.

SendResponseFromFile(IntPtr, Int64, Int64)

Adds the contents of the specified file to the response and specifies the starting position in the file and the number of bytes to send.

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)

Parameters

handle
IntPtr

nativeint

The handle of the file to send.

offset
Int64

The starting position in the file.

length
Int64

The number of bytes to send.

Applies to

SendResponseFromFile(String, Int64, Int64)

Adds the contents of the specified file to the response and specifies the starting position in the file and the number of bytes to send.

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)

Parameters

filename
String

The name of the file to send.

offset
Int64

The starting position in the file.

length
Int64

The number of bytes to send.

Applies to