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 SourceContentPermissionsQueryStringRequirement(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. |
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 SourceNodeId
Gets the specific node Id.
Declaration
public int? NodeId { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
PermissionToCheck
Gets the permission to authorize the current user against.
Declaration
public char PermissionToCheck { get; }
Property Value
Type | Description |
---|---|
System.Char |
QueryStringName
Gets the querystring parameter name.
Declaration
public string QueryStringName { get; }
Property Value
Type | Description |
---|---|
System.String |