Class EntityContainer
Represents a folder for organizing entities such as content types and data types.
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public sealed class EntityContainer : TreeEntityBase, IRememberBeingDirty, ICanBeDirty, IUmbracoEntity, ITreeEntity, IEntity, IDeepCloneable
Constructors
View SourceEntityContainer(Guid)
Initializes a new instance of an Entity
Declaration
public EntityContainer(Guid containedObjectType)
Parameters
Type | Name | Description |
---|---|---|
Guid | containedObjectType |
EntityContainer(Int32, Guid, Int32, String, Int32, Int32, Guid, String, Int32)
Initializes a new instance of an Entity
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. |
id | |
Guid | uniqueId | |
System. |
parentId | |
System. |
path | |
System. |
level | |
System. |
sortOrder | |
Guid | containedObjectType | |
System. |
name | |
System. |
userId |
Properties
View SourceContainedObjectType
Gets or sets the node object type of the contained objects.
Declaration
public Guid ContainedObjectType { get; }
Property Value
Type | Description |
---|---|
Guid |
ContainerObjectType
Gets the node object type of the container objects.
Declaration
public Guid ContainerObjectType { get; }
Property Value
Type | Description |
---|---|
Guid |
Methods
View SourceGetContainedObjectType(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. |
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. |