Regenerates the hash and updates the metadata of the specified file.
Namespace: DotNetNuke.Services.FileSystemAssembly: 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
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | Thrown when file is null. |