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