Writes the content of the specified file into the specified stream.

Namespace: DotNetNuke.Services.FileSystem
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public virtual void WriteFile(
	IFileInfo file,
	Stream stream
)
Visual Basic
Public Overridable Sub WriteFile ( 
	file As IFileInfo,
	stream As Stream
)

Parameters

file
Type: DotNetNuke.Services.FileSystem..::..IFileInfo
The file to write into the stream.
stream
Type: System.IO..::..Stream
The stream to write to.

Implements

IFileManager..::..WriteFile(IFileInfo, Stream)

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThrown when file or stream are null.

See Also