Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    ContentPermissionsResource(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.

    View Source

    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.

    View Source

    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 Source

    Content

    Gets the content.

    Declaration
    public IContent? Content { get; }
    Property Value
    Type Description
    System.Nullable<IContent>
    View Source

    NodeId

    Gets the node Id.

    Declaration
    public int? NodeId { get; }
    Property Value
    Type Description
    System.Nullable<System.Int32>
    View Source

    PermissionsToCheck

    Gets the collection of permissions to authorize.

    Declaration
    public IReadOnlyList<char> PermissionsToCheck { get; }
    Property Value
    Type Description
    IReadOnlyList<System.Char>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentPermissionsResource(IContent, IReadOnlyList<Char>)
      • ContentPermissionsResource(Nullable<IContent>, Char)
      • ContentPermissionsResource(Nullable<IContent>, Int32, IReadOnlyList<Char>)
    • Properties
      • Content
      • NodeId
      • PermissionsToCheck
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX