Search Results for

    Show / Hide Table of Contents
    View Source

    Class EntityContainer

    Represents a folder for organizing entities such as content types and data types.

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

    Constructors

    View Source

    EntityContainer(Guid)

    Initializes a new instance of an EntityContainer class.

    Declaration
    public EntityContainer(Guid containedObjectType)
    Parameters
    Type Name Description
    Guid containedObjectType
    View Source

    EntityContainer(Int32, Guid, Int32, String, Int32, Int32, Guid, String, Int32)

    Initializes a new instance of an EntityContainer class.

    Declaration
    public EntityContainer(int id, Guid uniqueId, int parentId, string path, int level, int sortOrder, Guid containedObjectType, string name, int userId)
    Parameters
    Type Name Description
    System.Int32 id
    Guid uniqueId
    System.Int32 parentId
    System.String path
    System.Int32 level
    System.Int32 sortOrder
    Guid containedObjectType
    System.String name
    System.Int32 userId

    Properties

    View Source

    ContainedObjectType

    Gets or sets the node object type of the contained objects.

    Declaration
    public Guid ContainedObjectType { get; }
    Property Value
    Type Description
    Guid
    View Source

    ContainerObjectType

    Gets the node object type of the container objects.

    Declaration
    public Guid ContainerObjectType { get; }
    Property Value
    Type Description
    Guid

    Methods

    View Source

    GetContainedObjectType(Guid)

    Gets the contained object type corresponding to a container object type.

    Declaration
    public static Guid GetContainedObjectType(Guid containerObjectType)
    Parameters
    Type Name Description
    Guid containerObjectType

    The container object type.

    Returns
    Type Description
    Guid

    The object type of objects that containers of the container object type can contain.

    View Source

    GetContainerObjectType(Guid)

    Gets the container object type corresponding to a contained object type.

    Declaration
    public static Guid GetContainerObjectType(Guid containedObjectType)
    Parameters
    Type Name Description
    Guid containedObjectType

    The contained object type.

    Returns
    Type Description
    Guid

    The object type of containers containing objects of the contained object type.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • EntityContainer(Guid)
      • EntityContainer(Int32, Guid, Int32, String, Int32, Int32, Guid, String, Int32)
    • Properties
      • ContainedObjectType
      • ContainerObjectType
    • Methods
      • GetContainedObjectType(Guid)
      • GetContainerObjectType(Guid)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX