Class ContentPermissionSet
Represents an IContent -> user group & permission key value pair collection
Namespace: Umbraco.Cms.Core.Models.Membership
Assembly: Umbraco.Core.dll
Syntax
public class ContentPermissionSet : EntityPermissionSet, IEntity, IDeepCloneable
Remarks
This implements IEntity purely so it can be used with the repository layer which is why it's explicitly implemented.
Constructors
View SourceContentPermissionSet(IContent, EntityPermissionCollection)
Initializes a new instance of the ContentPermissionSet class.
Declaration
public ContentPermissionSet(IContent content, EntityPermissionCollection permissionsSet)
Parameters
| Type | Name | Description |
|---|---|---|
| IContent | content | The content item associated with the permission set. |
| EntityPermissionCollection | permissionsSet | The collection of entity permissions. |
Properties
View SourceEntityId
The entity id with permissions assigned
Declaration
public override int EntityId { get; }
Property Value
| Type | Description |
|---|---|
| int |