Interface IFileHandler

Interface implemented by unified EPiServer directory handlers

Namespace: EPiServer.Web.Hosting.Versioning
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public interface IFileHandler

Properties

Changed

Gets the changed date/time

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

The changed.

Created

Gets the created date/time

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

The created.

Length

Returns the length of the file

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

The length.

Name

Returns the name of the file

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

Methods

Delete()

Deletes the file instance.

Declaration
void Delete()

MoveTo(IDirectoryHandler)

Moves the file instance to a another directory

Declaration
void MoveTo(IDirectoryHandler dir)
Parameters
Type Name Description
IDirectoryHandler dir

The dir.

OpenRead()

Opens a read stream to the file.

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

a readable stream

OpenWrite()

Opens a write stream to the file.

Declaration
Stream OpenWrite()
Returns
Type Description
System.IO.Stream

a writable stream

Rename(String)

Renames the file instance

Declaration
void Rename(string newName)
Parameters
Type Name Description
System.String newName

The new name.

Extension Methods