Files
Umbraco-CMS/src/Umbraco.Core/Models/PartialView.cs
T

26 lines
656 B
C#
Raw Normal View History

using System;
using System.Runtime.Serialization;
namespace Umbraco.Core.Models
{
/// <summary>
/// Represents a Partial View file
/// </summary>
[Serializable]
[DataContract(IsReference = true)]
public class PartialView : File, IPartialView
{
2017-05-30 10:50:09 +02:00
public PartialView(PartialViewType viewType, string path)
: this(viewType, path, null)
{ }
internal PartialView(PartialViewType viewType, string path, Func<File, string> getFileContent)
2015-09-07 12:38:46 +02:00
: base(path, getFileContent)
2017-05-30 10:50:09 +02:00
{
ViewType = viewType;
}
2015-09-07 12:38:46 +02:00
2017-05-30 10:50:09 +02:00
public PartialViewType ViewType { get; set; }
}
2017-07-20 11:21:28 +02:00
}