• Basics
  • Abyss
  • Web APIs
  • C# & Razor
  • .net API
  • JS & TS API

    Show / Hide Table of Contents

    Interface IFile

    Describes a file asset as provided by the underlying environment (like DNN)

    Inherited Members
    IAsset.Created
    IAsset.Id
    IAsset.ParentId
    IAsset.Modified
    IAsset.Name
    IAsset.Path
    IAsset.PhysicalPath
    Namespace: ToSic.Eav.Apps.Assets
    Assembly: ToSic.Eav.Apps.dll
    Syntax
    [PublicApi_Stable_ForUseInYourCode]
    public interface IFile : IAsset

    Properties

    | Improve this Doc View Source

    Extension

    The file extension of the real underlying file.

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

    The extension, like "pdf" or "jpg"

    | Improve this Doc View Source

    Folder

    The folder of the file

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

    The folder name

    | Improve this Doc View Source

    FolderId

    The folder ID of the file, if the underlying environment uses int IDs

    Declaration
    int FolderId { get; }
    Property Value
    Type Description
    System.Int32

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

    | Improve this Doc View Source

    FullName

    The full file name of the original file

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

    The full file name with extension.

    | Improve this Doc View Source

    Size

    The file size of the file, IF the underlying environment provides this.

    Declaration
    int Size { get; set; }
    Property Value
    Type Description
    System.Int32

    the size in bytes

    | Improve this Doc View Source

    SizeInfo

    Size information for files

    Declaration
    SizeInfo SizeInfo { get; }
    Property Value
    Type Description
    SizeInfo
    Remarks

    Added in v14.04

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX