Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    TextFileCreateModel()

    Declaration
    protected TextFileCreateModel()

    Properties

    View Source

    Content

    Gets or sets the initial content of the file.

    Declaration
    public string? Content { get; set; }
    Property Value
    Type Description
    string

    The file content, or null for an empty file.

    View Source

    Name

    Gets or sets the name of the file to create.

    Declaration
    public required string Name { get; set; }
    Property Value
    Type Description
    string
    View Source

    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 null to create at the root level.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX