This is an internal method for communication between DNN business layer and SQL database. Do not use in custom modules, please use API (DotNetNuke.Services.FileSystem.FileManager.UpdateFile) Stores information about a specific file, stored in DNN filesystem calling petapoco method to call the underlying stored procedure "UpdateFile"

Namespace: DotNetNuke.Data
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public virtual void UpdateFile(
	int fileId,
	Guid versionGuid,
	string fileName,
	string extension,
	long size,
	int width,
	int height,
	string contentType,
	int folderId,
	int lastModifiedByUserID,
	string hash,
	DateTime lastModificationTime,
	string title,
	string description,
	DateTime startDate,
	DateTime endDate,
	bool enablePublishPeriod,
	int contentItemId
)
Visual Basic
Public Overridable Sub UpdateFile ( 
	fileId As Integer,
	versionGuid As Guid,
	fileName As String,
	extension As String,
	size As Long,
	width As Integer,
	height As Integer,
	contentType As String,
	folderId As Integer,
	lastModifiedByUserID As Integer,
	hash As String,
	lastModificationTime As DateTime,
	title As String,
	description As String,
	startDate As DateTime,
	endDate As DateTime,
	enablePublishPeriod As Boolean,
	contentItemId As Integer
)

Parameters

fileId
Type: System..::..Int32
ID of the (already existing) file
versionGuid
Type: System..::..Guid
GUID of this file version (should usually not be modified)
fileName
Type: System..::..String
Name of the file in the file system (including extension)
extension
Type: System..::..String
File type - should meet extension in FileName
size
Type: System..::..Int64
Size of file (bytes)
width
Type: System..::..Int32
Width of images/video (lazy load: pass Null, might be retrieved by DNN platform on db file sync)
height
Type: System..::..Int32
Height of images/video (lazy load: pass Null, might be retrieved by DNN platform on db file snyc)
contentType
Type: System..::..String
MIME type of the file
folderId
Type: System..::..Int32
ID of the folder, the file resides in
lastModifiedByUserID
Type: System..::..Int32
ID of the user, who performed last update of file or file info
hash
Type: System..::..String
SHa1 hash of the file content, used for file versioning (lazy load: pass Null, will be generated by DNN platform on db file sync)
lastModificationTime
Type: System..::..DateTime
timestamp, when last update of file or file info happened
title
Type: System..::..String
Display title of the file - optional (pass Null if not provided)
description
Type: System..::..String
Description of the file.
startDate
Type: System..::..DateTime
date and time (server TZ), from which the file should be displayed/accessible (according to folder permission)
endDate
Type: System..::..DateTime
date and time (server TZ), until which the file should be displayed/accessible (according to folder permission)
enablePublishPeriod
Type: System..::..Boolean
shall startdate/end date be used?
contentItemId
Type: System..::..Int32
ID of the associated contentitem with description etc. (optional)

See Also