Mono Class Library: System.Web.HttpResponse Overview | Members

System.Web.HttpResponse.WriteFile Method

Writes a section of a file handle to the response stream.

public void WriteFile (IntPtr fileHandle, long offset, long size)

Parameters

fileHandle
An operating system handle to a file.
offset
Offset in the file handle to start sending data from.
size
Total size of bytes to send back to the client.

Remarks

This sends the contents of the file to the client.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0