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 SourceContentPropertySettings()
Declaration
public ContentPropertySettings()
Properties
View SourceReservedFieldNames
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 SourceAddReservedFieldName(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 |
|
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. |