Gets the file metadata for the specified file.

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

Syntax

C#
IFileInfo GetFile(
	int fileID,
	bool retrieveUnpublishedFiles
)
Visual Basic
Function GetFile ( 
	fileID As Integer,
	retrieveUnpublishedFiles As Boolean
) As IFileInfo

Parameters

fileID
Type: System..::..Int32
The file identifier.
retrieveUnpublishedFiles
Type: System..::..Boolean
Indicates if the file is retrieved from All files or from Published files

Return Value

The IFileInfo object with the metadata of the specified file.

See Also