Search Results for

    Show / Hide Table of Contents
    View Source

    Class DocumentGranularPermission

    Represents a granular permission for a document (content) node.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models.Membership.Permissions
    Assembly: Umbraco.Core.dll
    Syntax
    public class DocumentGranularPermission : INodeGranularPermission, IGranularPermission

    Constructors

    View Source

    DocumentGranularPermission()

    Declaration
    public DocumentGranularPermission()

    Fields

    View Source

    ContextType

    The context type identifier for document permissions.

    Declaration
    public const string ContextType = "Document"
    Field Value
    Type Description
    string

    Properties

    View Source

    Context

    Gets the context type identifier for this permission.

    Declaration
    public string Context { get; }
    Property Value
    Type Description
    string
    View Source

    Key

    Gets or sets the unique key of the node this permission applies to.

    Declaration
    public required Guid Key { get; set; }
    Property Value
    Type Description
    Guid
    View Source

    Permission

    Gets or sets the permission identifier.

    Declaration
    public required string Permission { get; set; }
    Property Value
    Type Description
    string

    Methods

    View Source

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    View Source

    Equals(DocumentGranularPermission)

    Determines whether this instance is equal to another DocumentGranularPermission.

    Declaration
    protected bool Equals(DocumentGranularPermission other)
    Parameters
    Type Name Description
    DocumentGranularPermission other

    The other instance to compare.

    Returns
    Type Description
    bool

    true if equal; otherwise, false.

    View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX