Files
Umbraco-CMS/src/Umbraco.Core/Models/IProperty.cs
2022-02-09 13:24:35 +01:00

41 lines
1.2 KiB
C#

using System.Collections.Generic;
using Umbraco.Cms.Core.Models.Entities;
namespace Umbraco.Cms.Core.Models
{
public interface IProperty : IEntity, IRememberBeingDirty
{
ValueStorageType ValueStorageType { get; }
/// <summary>
/// Returns the PropertyType, which this Property is based on
/// </summary>
IPropertyType PropertyType { get; }
/// <summary>
/// Gets the list of values.
/// </summary>
IReadOnlyCollection<IPropertyValue> Values { get; set; }
/// <summary>
/// Returns the Alias of the PropertyType, which this Property is based on
/// </summary>
string Alias { get; }
/// <summary>
/// Gets the value.
/// </summary>
object? GetValue(string? culture = null, string? segment = null, bool published = false);
/// <summary>
/// Sets a value.
/// </summary>
void SetValue(object? value, string? culture = null, string? segment = null);
int PropertyTypeId { get; }
void PublishValues(string? culture = "*", string segment = "*");
void UnpublishValues(string? culture = "*", string segment = "*");
}
}