Checks if the file is out of Publish Period

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

Syntax

C#
bool IsFileOutOfPublishPeriod(
	IFileInfo file,
	int portalId,
	int userId
)
Visual Basic
Function IsFileOutOfPublishPeriod ( 
	file As IFileInfo,
	portalId As Integer,
	userId As Integer
) As Boolean

Parameters

file
Type: DotNetNuke.Services.FileSystem..::..IFileInfo
the file to be checked
portalId
Type: System..::..Int32
The Portal Id where the file is contained
userId
Type: System..::..Int32
The user Id who is accessing to the file

Return Value

True if the file is out of publish period, false in otherwise. In anycase, True for admin or host users

See Also