Search Results for

    Show / Hide Table of Contents
    View Source

    Class PropertyModel

    Represents a model property.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.ModelsBuilder.Building
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class PropertyModel

    Fields

    View Source

    Alias

    Gets the alias of the property.

    Declaration
    public string Alias
    Field Value
    Type Description
    System.String
    View Source

    ClrName

    Gets the clr name of the property.

    Declaration
    public string ClrName
    Field Value
    Type Description
    System.String
    Remarks

    This is just the local name eg "Price".

    View Source

    ClrTypeName

    Gets the CLR type name of the property values.

    Declaration
    public string ClrTypeName
    Field Value
    Type Description
    System.String
    View Source

    Description

    Gets the description of the property.

    Declaration
    public string Description
    Field Value
    Type Description
    System.String
    View Source

    Errors

    Gets the generation errors for the property.

    Declaration
    public List<string>? Errors
    Field Value
    Type Description
    System.Nullable<List<System.String>>
    Remarks

    This should be null, unless something prevents the property from being generated, and then the value should explain what. This can be used to generate commented out code eg in InMemoryAuto mode.

    View Source

    ModelClrType

    Gets the Model Clr type of the property values.

    Declaration
    public Type ModelClrType
    Field Value
    Type Description
    Type
    Remarks

    As indicated by the PublishedPropertyType, ie by the IPropertyValueConverter if any, else object. May include some ModelType that will need to be mapped.

    View Source

    Name

    Gets the name of the property.

    Declaration
    public string Name
    Field Value
    Type Description
    System.String

    Methods

    View Source

    AddError(String)

    Adds an error.

    Declaration
    public void AddError(string error)
    Parameters
    Type Name Description
    System.String error
    • Improve this Doc
    • View Source
    In This Article
    • Fields
      • Alias
      • ClrName
      • ClrTypeName
      • Description
      • Errors
      • ModelClrType
      • Name
    • Methods
      • AddError(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX