Class ContentPermissionsResource
The resource used for the Content
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 Content
Declaration
public ContentPermissionsResource(IContent content, IReadOnlyList<char> permissionsToCheck)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | The content. |
IRead |
permissionsToCheck | The collection of permissions to authorize. |
ContentPermissionsResource(Nullable<IContent>, Char)
Initializes a new instance of the Content
Declaration
public ContentPermissionsResource(IContent? content, char permissionToCheck)
Parameters
Type | Name | Description |
---|---|---|
System. |
content | The content. |
System. |
permissionToCheck | The permission to authorize. |
ContentPermissionsResource(Nullable<IContent>, Int32, IReadOnlyList<Char>)
Initializes a new instance of the Content
Declaration
public ContentPermissionsResource(IContent? content, int nodeId, IReadOnlyList<char> permissionsToCheck)
Parameters
Type | Name | Description |
---|---|---|
System. |
content | The content. |
System. |
nodeId | The node Id. |
IRead |
permissionsToCheck | The collection of permissions to authorize. |
Properties
View SourceContent
Gets the content.
Declaration
public IContent? Content { get; }
Property Value
Type | Description |
---|---|
System. |
NodeId
Gets the node Id.
Declaration
public int? NodeId { get; }
Property Value
Type | Description |
---|---|
System. |
PermissionsToCheck
Gets the collection of permissions to authorize.
Declaration
public IReadOnlyList<char> PermissionsToCheck { get; }
Property Value
Type | Description |
---|---|
IRead |