Files
Umbraco-CMS/src/Umbraco.Core/Models/ContentPropertySettings.cs
Nikolaj Geisle dd68a6da7f V14: Add reserved fields to config endpoints (#15919)
* Add reserved fields to documents

* Add member configuration endpoint

* Add reserved field to media configuration

* Refactor to use service instead on hardcoded methods

* Clean up, aligning

* Update OpenApi

---------

Co-authored-by: Elitsa <elm@umbraco.dk>
2024-03-22 12:11:38 +01:00

14 lines
427 B
C#

namespace Umbraco.Cms.Core.Models;
public class ContentPropertySettings
{
private readonly HashSet<string> _reservedFieldNames = new();
/// <summary>
/// Gets a set of standard names for fields that cannot be used for custom properties.
/// </summary>
public ISet<string> ReservedFieldNames => _reservedFieldNames;
public bool AddReservedFieldName(string name) => _reservedFieldNames.Add(name);
}