Regenerates the hash and updates the metadata of the specified file.

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

Syntax

C#
public virtual IFileInfo UpdateFile(
	IFileInfo file,
	Stream fileContent
)
Visual Basic
Public Overridable Function UpdateFile ( 
	file As IFileInfo,
	fileContent As Stream
) As IFileInfo

Parameters

file
Type: DotNetNuke.Services.FileSystem..::..IFileInfo
The file to update.
fileContent
Type: System.IO..::..Stream
Stream used to regenerate the hash.

Return Value

A IFileInfo as the updated file.

Implements

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

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThrown when file is null.

See Also