Class UnifiedVersion

Base class for implementations of file systems. This is an extension of the VPP API VirtualFile class to provide extended functionallity around EPiServer files.

Inheritance
System.Object
UnifiedVersion
Inherited Members
Namespace: EPiServer.Web.Hosting
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public abstract class UnifiedVersion : UnifiedFile

Constructors

UnifiedVersion(UnifiedDirectory, VirtualPathUnifiedProvider, String, Boolean)

Initializes a new instance of the UnifiedVersion class.

Declaration
public UnifiedVersion(UnifiedDirectory directory, VirtualPathUnifiedProvider provider, string virtualPath, bool bypassAccessCheck)
Parameters
Type Name Description
UnifiedDirectory directory

The directory the file belongs to. Is only of importance for access checks for page folders for unsaved pages

VirtualPathUnifiedProvider provider

The provider hosting the file version.

System.String virtualPath

The virtual path of this instance.

System.Boolean bypassAccessCheck

True if no access check should be done.

Remarks

UnifiedDirectory needs to be passed only when the file is created in a directory which is a pagefolder for an unsaved page. Else null can be passed

Properties

Comments

Gets the comment for this version.

Declaration
public abstract string Comments { get; }
Property Value
Type Description
System.String

The comment.

CreatedBy

Gets the name of the creator

Declaration
public abstract string CreatedBy { get; }
Property Value
Type Description
System.String

The user name of the creator of this file version.

Id

Gets the unique id for this file version.

Declaration
public abstract object Id { get; }
Property Value
Type Description
System.Object

The id.

Methods

Restore()

Implement this method to restore the file version as the current version.

Declaration
public abstract void Restore()

Extension Methods