Search Results for

    Show / Hide Table of Contents
    View Source

    Class PartialView

    Represents a Partial View file

    Inheritance
    object
    BeingDirtyBase
    EntityBase
    File
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(IsReference = true)]
    public class PartialView : File, IPartialView, IFile, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty

    Constructors

    View Source

    PartialView(string)

    Initializes a new instance of the PartialView class with the specified path.

    Declaration
    public PartialView(string path)
    Parameters
    Type Name Description
    string path

    The path to the partial view file.

    View Source

    PartialView(string, Func<File, string?>?)

    Initializes a new instance of the PartialView class with the specified path and content retrieval function.

    Declaration
    public PartialView(string path, Func<File, string?>? getFileContent)
    Parameters
    Type Name Description
    string path

    The path to the partial view file.

    Func<File, string> getFileContent

    A function to retrieve the file content.

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