Class VersioningFileVersionHandler

The internal EPiServer implementation of a versioned share.

Inheritance
System.Object
VersioningFileVersionHandler
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Hosting.Versioning
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public class VersioningFileVersionHandler : IFileVersion

Properties

Comments

Comments entered by the user when checking in a file.

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

Created

The date when the version was created.

Declaration
public DateTime Created { get; }
Property Value
Type Description
System.DateTime

CreatedBy

Username of the user creating this version.

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

Id

Any identification of this version.

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

The value must be able to have a string representation supported by ToString().

Length

The size in bytes.

Declaration
public long Length { get; }
Property Value
Type Description
System.Int64

Name

The version name (may be auto-generated).

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

Methods

Delete()

Called when a version is deleted.

Declaration
public void Delete()

OpenRead()

Called to read data in a version.

Declaration
public Stream OpenRead()
Returns
Type Description
System.IO.Stream

OpenRead(FileShare)

Opens a read stream to the file version

Declaration
public Stream OpenRead(FileShare share)
Parameters
Type Name Description
System.IO.FileShare share

The share.

Returns
Type Description
System.IO.Stream

Restore()

Called when a version is restored to the current version.

Declaration
public void Restore()

Implements

Extension Methods