Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IFile

    Defines a File

    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IFile : IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
    Remarks

    Used for Scripts, Stylesheets and Templates

    Properties

    View Source

    Alias

    Gets the Alias of the File, which is the name without the extension

    Declaration
    string Alias { get; }
    Property Value
    Type Description
    System.String
    View Source

    Content

    Gets or sets the Content of a File

    Declaration
    string Content { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Name

    Gets the Name of the File including extension

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

    OriginalPath

    Gets the original path of the file

    Declaration
    string OriginalPath { get; }
    Property Value
    Type Description
    System.String
    View Source

    Path

    Gets or sets the Path to the File from the root of the file's associated IFileSystem

    Declaration
    string Path { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    VirtualPath

    Gets or sets the file's virtual path (i.e. the file path relative to the root of the website)

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

    Methods

    View Source

    ResetOriginalPath()

    Called to re-set the OriginalPath to the Path

    Declaration
    void ResetOriginalPath()
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX