summaryM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])

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

Syntax

C#
public virtual int AddFileVersion(
	int fileId,
	Guid uniqueId,
	Guid versionGuid,
	string fileName,
	string extension,
	long size,
	int width,
	int height,
	string contentType,
	string folder,
	int folderId,
	int userId,
	string hash,
	DateTime lastModificationTime,
	string title,
	bool enablePublishPeriod,
	DateTime startDate,
	DateTime endDate,
	int contentItemID,
	bool published,
	byte[] content = null
)
Visual Basic
Public Overridable Function AddFileVersion ( 
	fileId As Integer,
	uniqueId As Guid,
	versionGuid As Guid,
	fileName As String,
	extension As String,
	size As Long,
	width As Integer,
	height As Integer,
	contentType As String,
	folder As String,
	folderId As Integer,
	userId As Integer,
	hash As String,
	lastModificationTime As DateTime,
	title As String,
	enablePublishPeriod As Boolean,
	startDate As DateTime,
	endDate As DateTime,
	contentItemID As Integer,
	published As Boolean,
	Optional content As Byte() = Nothing
) As Integer

Parameters

fileId
Type: System..::..Int32
paramfileIdM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
uniqueId
Type: System..::..Guid
paramuniqueIdM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
versionGuid
Type: System..::..Guid
paramversionGuidM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
fileName
Type: System..::..String
paramfileNameM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
extension
Type: System..::..String
paramextensionM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
size
Type: System..::..Int64
paramsizeM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
width
Type: System..::..Int32
paramwidthM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
height
Type: System..::..Int32
paramheightM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
contentType
Type: System..::..String
paramcontentTypeM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
folder
Type: System..::..String
paramfolderM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
folderId
Type: System..::..Int32
paramfolderIdM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
userId
Type: System..::..Int32
paramuserIdM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
hash
Type: System..::..String
paramhashM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
lastModificationTime
Type: System..::..DateTime
paramlastModificationTimeM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
title
Type: System..::..String
paramtitleM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
enablePublishPeriod
Type: System..::..Boolean
paramenablePublishPeriodM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
startDate
Type: System..::..DateTime
paramstartDateM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
endDate
Type: System..::..DateTime
paramendDateM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
contentItemID
Type: System..::..Int32
paramcontentItemIDM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
published
Type: System..::..Boolean
parampublishedM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])
content
Type: array<System..::..Byte>[]()[][]
paramcontentM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])

Return Value

returnsM:DotNetNuke.Data.DataProvider.AddFileVersion(System.Int32,System.Guid,System.Guid,System.String,System.String,System.Int64,System.Int32,System.Int32,System.String,System.String,System.Int32,System.Int32,System.String,System.DateTime,System.String,System.Boolean,System.DateTime,System.DateTime,System.Int32,System.Boolean,System.Byte[])

See Also