Writes the content of the specified file into the specified stream.
Namespace: DotNetNuke.Services.FileSystemAssembly: 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
Exception | Condition |
---|---|
System..::..ArgumentNullException | Thrown when file or stream are null. |