Interface IFileVersion
File version returned by IVersionedFile
Namespace: EPiServer.Web.Hosting.Versioning
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public interface IFileVersion
Properties
Comments
Comments entered by the user when checking in a file.
Declaration
string Comments { get; }
Property Value
Type | Description |
---|---|
System.String |
Created
The date when the version was created.
Declaration
DateTime Created { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
CreatedBy
Username of the user creating this version.
Declaration
string CreatedBy { get; }
Property Value
Type | Description |
---|---|
System.String |
Id
Any identification of this version.
Declaration
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
long Length { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Name
The version name (may be auto-generated).
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Delete()
Called when a version is deleted.
Declaration
void Delete()
OpenRead()
Called to read data in a version.
Declaration
Stream OpenRead()
Returns
Type | Description |
---|---|
System.IO.Stream |
Restore()
Called when a version is restored to the current version.
Declaration
void Restore()