Class TextFileCreateModel
Represents the base model for creating a text file.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public abstract class TextFileCreateModel
Constructors
View SourceTextFileCreateModel()
Declaration
protected TextFileCreateModel()
Properties
View SourceContent
Gets or sets the initial content of the file.
Declaration
public string? Content { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The file content, or |
Name
Gets or sets the name of the file to create.
Declaration
public required string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ParentPath
Gets or sets the parent path where the file will be created.
Declaration
public string? ParentPath { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The parent directory path, or |