แก้ไข

แชร์ผ่าน


HttpResponseBase.TransmitFile Method

Definition

Writes the specified file to the HTTP response output stream, without buffering it in memory.

Overloads

TransmitFile(String, Int64, Int64)

Writes the specified part of a file to the HTTP response output stream, without buffering it in memory.

TransmitFile(String)

Writes the specified file to the HTTP response output stream, without buffering it in memory.

TransmitFile(String, Int64, Int64)

Writes the specified part of a file to the HTTP response output stream, without buffering it in memory.

public:
 virtual void TransmitFile(System::String ^ filename, long offset, long length);
public virtual void TransmitFile (string filename, long offset, long length);
abstract member TransmitFile : string * int64 * int64 -> unit
override this.TransmitFile : string * int64 * int64 -> unit
Public Overridable Sub TransmitFile (filename As String, offset As Long, length As Long)

Parameters

filename
String

The name of the file to write to the HTTP output stream.

offset
Int64

The position in the file where writing starts.

length
Int64

The number of bytes to write, starting at offset.

Exceptions

Applies to

TransmitFile(String)

Writes the specified file to the HTTP response output stream, without buffering it in memory.

public:
 virtual void TransmitFile(System::String ^ filename);
public virtual void TransmitFile (string filename);
abstract member TransmitFile : string -> unit
override this.TransmitFile : string -> unit
Public Overridable Sub TransmitFile (filename As String)

Parameters

filename
String

The name of the file to write to the HTTP output stream.

Exceptions

Applies to