Gets the content of the specified file.

Namespace: DotNetNuke.Services.FileSystem
Assembly: 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

ExceptionCondition
System..::..ArgumentNullExceptionThrown when file is null.
DotNetNuke.Services.FileSystem..::..FolderProviderExceptionThrown when the underlying system throw an exception.

See Also