Class EntityContainer
Represents a folder for organizing entities such as content types and data types.
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public sealed class EntityContainer : UmbracoEntity, IUmbracoEntity, IAggregateRoot, IDeletableEntity, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors
EntityContainer(Guid)
Initializes a new instance of an EntityContainer class.
Declaration
public EntityContainer(Guid containedObjectType)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | containedObjectType |
Properties
ContainedObjectType
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
GetContainedObjectType(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. |