Gets the content of the specified file.
Namespace: DotNetNuke.Services.FileSystemAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public virtual Stream GetFileContent( IFileInfo file ) |
Visual Basic |
---|
Public Overridable Function GetFileContent ( file As IFileInfo ) As Stream |
Parameters
- file
- Type: DotNetNuke.Services.FileSystem..::..IFileInfo
The file to get the content from.
Return Value
A stream with the content of the file.Implements
IFileManager..::..GetFileContent(IFileInfo)
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | Thrown when file is null. |
DotNetNuke.Services.FileSystem..::..FolderProviderException | Thrown when the underlying system throw an exception. |