Class FileVersionController
Inheritance
FileVersionController
Assembly: DotNetNuke.dll
Syntax
public class FileVersionController : ComponentBase<IFileVersionController, FileVersionController>, IFileVersionController
Constructors
FileVersionController()
Declaration
public FileVersionController()
Methods
AddFileVersion(IFileInfo, int, bool, bool, Stream)
Declaration
public string AddFileVersion(IFileInfo file, int userId, bool published, bool removeOldestVersions, Stream content = null)
Parameters
Returns
DeleteAllUnpublishedVersions(IFileInfo, bool)
Declaration
public void DeleteAllUnpublishedVersions(IFileInfo file, bool resetPublishedVersionNumber)
Parameters
Type |
Name |
Description |
IFileInfo |
file |
|
bool |
resetPublishedVersionNumber |
|
DeleteFileVersion(IFileInfo, int)
Declaration
public int DeleteFileVersion(IFileInfo file, int version)
Parameters
Returns
GetFileVersion(IFileInfo, int)
Declaration
public FileVersionInfo GetFileVersion(IFileInfo file, int version)
Parameters
Returns
GetFileVersions(IFileInfo)
Declaration
public IEnumerable<FileVersionInfo> GetFileVersions(IFileInfo file)
Parameters
Returns
GetFileVersionsInFolder(int)
Declaration
public IEnumerable<FileVersionInfo> GetFileVersionsInFolder(int folderId)
Parameters
Type |
Name |
Description |
int |
folderId |
|
Returns
GetVersionContent(IFileInfo, int)
Declaration
public Stream GetVersionContent(IFileInfo file, int version)
Parameters
Returns
IsFileVersionEnabled(int)
Declaration
public bool IsFileVersionEnabled(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
Returns
IsFolderVersioned(IFolderInfo)
Declaration
public bool IsFolderVersioned(IFolderInfo folder)
Parameters
Returns
IsFolderVersioned(int)
Declaration
public bool IsFolderVersioned(int folderId)
Parameters
Type |
Name |
Description |
int |
folderId |
|
Returns
MaxFileVersions(int)
Declaration
public int MaxFileVersions(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
Returns
RollbackFileVersion(IFileInfo, int, int)
Declaration
public void RollbackFileVersion(IFileInfo file, int version, int userId)
Parameters
SetPublishedVersion(IFileInfo, int)
Declaration
public void SetPublishedVersion(IFileInfo file, int newPublishedVersion)
Parameters
Type |
Name |
Description |
IFileInfo |
file |
|
int |
newPublishedVersion |
|
Implements
Extension Methods