HttpResponseWrapper::WriteFile Method (String^)

 

Writes the contents of the specified file to the HTTP response output stream as a file block.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public:
virtual void WriteFile(
	String^ filename
) override

Parameters

filename
Type: System::String^

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

Exception Condition
ArgumentNullException

The filename parameter is null.

.NET Framework
Available since 3.5
Return to top
Show: