Table of Contents

Interface IAsset

Namespace
ToSic.Eav.Apps.Assets
Assembly
ToSic.Eav.Apps.dll

Any asset (file/folder) of the EAV App System.
This interface contains properties which both IFolder and IFile have in common

[PublicApi]
public interface IAsset

Properties

Created

The creation date of the item, as reported by the environment.

DateTime Created { get; }

Property Value

DateTime

The date-time when the file was created.

Id

The ID of the item, if the underlying environment uses int IDs

int Id { get; }

Property Value

int

an int with the id used by the environment to track this item

Modified

The modified date of the file, as reported by the environment.

DateTime Modified { get; }

Property Value

DateTime

The date-time when the file was modified last.

Name

The asset name typically the folder or the file name

string Name { get; }

Property Value

string

ParentId

The folder ID of the file, or parent-folder of a folder, if the underlying environment uses int IDs

int ParentId { get; }

Property Value

int

an int with the id used by the environment to track this item

Path

The relative physical path of the item in the file system of the environment. This is usually relative to the site root.

string Path { get; }

Property Value

string

The full path of this item

PhysicalPath

The full physical path to folder or file to access them on the local server.

string PhysicalPath { get; }

Property Value

string

The full physical path to this asset