Interface IFile
Defines a File
Namespace: Umbraco.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public interface IFile : IEntity, IDeepCloneable
Remarks
Used for Scripts, Stylesheets and Templates
Properties
View SourceAlias
Gets the Alias of the File, which is the name without the extension
Declaration
string Alias { get; }
Property Value
Type | Description |
---|---|
System.String |
Content
Gets or sets the Content of a File
Declaration
string Content { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Gets the Name of the File including extension
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
OriginalPath
Gets the original path of the file
Declaration
string OriginalPath { get; }
Property Value
Type | Description |
---|---|
System.String |
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 |
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 SourceResetOriginalPath()
Called to re-set the OriginalPath to the Path
Declaration
void ResetOriginalPath()