Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentPropertySettings

    Represents settings for content properties, including reserved field names.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public class ContentPropertySettings
    Remarks

    Reserved field names are standard names that cannot be used for custom properties to prevent conflicts with built-in Umbraco functionality.

    Constructors

    View Source

    ContentPropertySettings()

    Declaration
    public ContentPropertySettings()

    Properties

    View Source

    ReservedFieldNames

    Gets a set of standard names for fields that cannot be used for custom properties.

    Declaration
    public ISet<string> ReservedFieldNames { get; }
    Property Value
    Type Description
    ISet<string>

    Methods

    View Source

    AddReservedFieldName(string)

    Adds a reserved field name to the set.

    Declaration
    public bool AddReservedFieldName(string name)
    Parameters
    Type Name Description
    string name

    The field name to reserve.

    Returns
    Type Description
    bool

    true if the name was added; false if it already exists.

    View Source

    AddReservedFieldNames(ISet<string>)

    Adds multiple reserved field names to the set.

    Declaration
    public void AddReservedFieldNames(ISet<string> names)
    Parameters
    Type Name Description
    ISet<string> names

    The set of field names to reserve.

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