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

System.Web.HttpResponse.WriteFile Method

Writes the contents of a file back to the client.

public void WriteFile (string filename)

Parameters

filename
A file to send back.

Remarks

If you need to send the contents of a temporary file, consider using the System.Web.HttpResponse.Write(string,bool) method to read the contents of the file into memory.

Requirements

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