Class PropertyTypeModelBase
Represents the base model for a property type in a content type.
Inheritance
Namespace: Umbraco.Cms.Api.Management.ViewModels.ContentType
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public abstract class PropertyTypeModelBase
Constructors
View SourcePropertyTypeModelBase()
Declaration
protected PropertyTypeModelBase()
Properties
View SourceAlias
Gets or sets the alias of the property type.
Declaration
[Required]
public string Alias { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Appearance
Gets or sets the UI appearance settings for the property type.
Declaration
public PropertyTypeAppearance Appearance { get; set; }
Property Value
| Type | Description |
|---|---|
| PropertyTypeAppearance |
Container
Gets or sets a reference to the container that organizes this property type.
Declaration
public ReferenceByIdModel? Container { get; set; }
Property Value
| Type | Description |
|---|---|
| ReferenceByIdModel |
DataType
Gets or sets the data type reference associated with this property type.
Declaration
public ReferenceByIdModel DataType { get; set; }
Property Value
| Type | Description |
|---|---|
| ReferenceByIdModel |
Description
Gets or sets the textual description of the property type.
Declaration
public string? Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Id
Gets or sets the unique identifier for the property type.
Declaration
public Guid Id { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
Name
Gets or sets the name of the property type.
Declaration
[Required]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SortOrder
Gets or sets the sort order of the property type.
Declaration
public int SortOrder { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Validation
Gets or sets the validation settings for the property type.
Declaration
public PropertyTypeValidation Validation { get; set; }
Property Value
| Type | Description |
|---|---|
| PropertyTypeValidation |
VariesByCulture
Gets or sets a value indicating whether the value of the property type varies by culture.
Declaration
public bool VariesByCulture { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
VariesBySegment
Gets or sets a value indicating whether the property type varies by segment, such as language or culture segment.
Declaration
public bool VariesBySegment { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |