Interface IFile
Describes a file asset as provided by the underlying environment (like DNN)
Inherited Members
Namespace: ToSic.Eav.Apps.Assets
Assembly: ToSic.Eav.Apps.dll
Syntax
[PublicApi_Stable_ForUseInYourCode]
public interface IFile : IAsset
Properties
| Improve this Doc View SourceExtension
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" |
Folder
The folder of the file
Declaration
string Folder { get; set; }
Property Value
Type | Description |
---|---|
System.String | The folder name |
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 |
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. |
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 |
SizeInfo
Size information for files
Declaration
SizeInfo SizeInfo { get; }
Property Value
Type | Description |
---|---|
SizeInfo |
Remarks
Added in v14.04