Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentPermissionsQueryStringRequirement

    An authorization requirement for ContentPermissionsQueryStringHandler

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Web.BackOffice.Authorization
    Assembly: Umbraco.Web.BackOffice.dll
    Syntax
    public class ContentPermissionsQueryStringRequirement : IAuthorizationRequirement

    Constructors

    View Source

    ContentPermissionsQueryStringRequirement(Char, String)

    Initializes a new instance of the ContentPermissionsQueryStringRequirement class for a node id based on a query string parameter.

    Declaration
    public ContentPermissionsQueryStringRequirement(char permissionToCheck, string paramName = "id")
    Parameters
    Type Name Description
    System.Char permissionToCheck

    The permission to authorize the current user against.

    System.String paramName

    The querystring parameter name.

    View Source

    ContentPermissionsQueryStringRequirement(Int32, Char)

    Initializes a new instance of the ContentPermissionsQueryStringRequirement class for a specific node id.

    Declaration
    public ContentPermissionsQueryStringRequirement(int nodeId, char permissionToCheck)
    Parameters
    Type Name Description
    System.Int32 nodeId

    The node Id.

    System.Char permissionToCheck

    The permission to authorize the current user against.

    Properties

    View Source

    NodeId

    Gets the specific node Id.

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

    PermissionToCheck

    Gets the permission to authorize the current user against.

    Declaration
    public char PermissionToCheck { get; }
    Property Value
    Type Description
    System.Char
    View Source

    QueryStringName

    Gets the querystring parameter name.

    Declaration
    public string QueryStringName { get; }
    Property Value
    Type Description
    System.String
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentPermissionsQueryStringRequirement(Char, String)
      • ContentPermissionsQueryStringRequirement(Int32, Char)
    • Properties
      • NodeId
      • PermissionToCheck
      • QueryStringName
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX