Class TemporaryFileModelBase
Represents the base model for a temporary file.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.TemporaryFile
Assembly: Umbraco.Core.dll
Syntax
public abstract class TemporaryFileModelBase
Constructors
View SourceTemporaryFileModelBase()
Declaration
protected TemporaryFileModelBase()
Properties
View SourceFileName
Gets or sets the name of the file.
Declaration
public required string FileName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Key
Gets or sets the unique key identifying the temporary file.
Declaration
public Guid Key { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
OpenReadStream
Gets or sets the function to open a read stream for the file content.
Declaration
public Func<Stream> OpenReadStream { get; set; }
Property Value
| Type | Description |
|---|---|
| Func<Stream> |