Class ContentPermissionsResource
The resource used for the ContentPermissionsResourceRequirement
Inheritance
System.Object
Namespace: Umbraco.Cms.Web.BackOffice.Authorization
Assembly: Umbraco.Web.BackOffice.dll
Syntax
public class ContentPermissionsResource
Constructors
View SourceContentPermissionsResource(IContent, IReadOnlyList<Char>)
Initializes a new instance of the ContentPermissionsResource class.
Declaration
public ContentPermissionsResource(IContent content, IReadOnlyList<char> permissionsToCheck)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | The content. |
IReadOnlyList<System.Char> | permissionsToCheck | The collection of permissions to authorize. |
ContentPermissionsResource(Nullable<IContent>, Char)
Initializes a new instance of the ContentPermissionsResource class.
Declaration
public ContentPermissionsResource(IContent? content, char permissionToCheck)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<IContent> | content | The content. |
System.Char | permissionToCheck | The permission to authorize. |
ContentPermissionsResource(Nullable<IContent>, Int32, IReadOnlyList<Char>)
Initializes a new instance of the ContentPermissionsResource class.
Declaration
public ContentPermissionsResource(IContent? content, int nodeId, IReadOnlyList<char> permissionsToCheck)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<IContent> | content | The content. |
System.Int32 | nodeId | The node Id. |
IReadOnlyList<System.Char> | permissionsToCheck | The collection of permissions to authorize. |
Properties
View SourceContent
Gets the content.
Declaration
public IContent? Content { get; }
Property Value
Type | Description |
---|---|
System.Nullable<IContent> |
NodeId
Gets the node Id.
Declaration
public int? NodeId { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
PermissionsToCheck
Gets the collection of permissions to authorize.
Declaration
public IReadOnlyList<char> PermissionsToCheck { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<System.Char> |