Class PartialView
Represents a Partial View 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 SourcePartialView(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. |
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. |