Search Results for

    Show / Hide Table of Contents
    View Source

    Class TreeEntityBase

    Provides a base class for tree entities.

    Inheritance
    System.Object
    BeingDirtyBase
    EntityBase
    Namespace: Umbraco.Cms.Core.Models.Entities
    Assembly: Umbraco.Core.dll
    Syntax
    public abstract class TreeEntityBase : EntityBase, IRememberBeingDirty, ICanBeDirty, ITreeEntity, IEntity, IDeepCloneable

    Properties

    View Source

    CreatorId

    Gets or sets the identifier of the user who created this entity.

    Declaration
    [DataMember]
    public int CreatorId { get; set; }
    Property Value
    Type Description
    System.Int32
    View Source

    Level

    Gets or sets the level of the entity.

    Declaration
    [DataMember]
    public int Level { get; set; }
    Property Value
    Type Description
    System.Int32
    View Source

    Name

    Gets or sets the name of the entity.

    Declaration
    [DataMember]
    public string Name { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    ParentId

    Gets or sets the identifier of the parent entity.

    Declaration
    [DataMember]
    public int ParentId { get; set; }
    Property Value
    Type Description
    System.Int32
    View Source

    Path

    Gets or sets the path to the entity.

    Declaration
    [DataMember]
    public string Path { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    SortOrder

    Gets or sets the sort order of the entity.

    Declaration
    [DataMember]
    public int SortOrder { get; set; }
    Property Value
    Type Description
    System.Int32
    View Source

    Trashed

    Gets a value indicating whether this entity is trashed.

    Declaration
    [DataMember]
    public bool Trashed { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    Trashed entities are located in the recycle bin.

    Always false for entities that do not support being trashed.

    Methods

    View Source

    SetParent(ITreeEntity)

    Sets the parent entity.

    Declaration
    public void SetParent(ITreeEntity parent)
    Parameters
    Type Name Description
    ITreeEntity parent
    Remarks

    Use this method to set the parent entity when the parent entity is known, but has not been persistent and does not yet have an identity. The parent identifier will be retrieved from the parent entity when needed. If the parent entity still does not have an entity by that time, an exception will be thrown by ParentId getter.

    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • CreatorId
      • Level
      • Name
      • ParentId
      • Path
      • SortOrder
      • Trashed
    • Methods
      • SetParent(ITreeEntity)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX