Class ContentPermissionsQueryStringRequirement
An authorization requirement for Content
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 Content
Declaration
public ContentPermissionsQueryStringRequirement(char permissionToCheck, string paramName = "id")
Parameters
Type | Name | Description |
---|---|---|
System. |
permissionToCheck | The permission to authorize the current user against. |
System. |
paramName | The querystring parameter name. |
ContentPermissionsQueryStringRequirement(Int32, Char)
Initializes a new instance of the Content
Declaration
public ContentPermissionsQueryStringRequirement(int nodeId, char permissionToCheck)
Parameters
Type | Name | Description |
---|---|---|
System. |
nodeId | The node Id. |
System. |
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. |
PermissionToCheck
Gets the permission to authorize the current user against.
Declaration
public char PermissionToCheck { get; }
Property Value
Type | Description |
---|---|
System. |
QueryStringName
Gets the querystring parameter name.
Declaration
public string QueryStringName { get; }
Property Value
Type | Description |
---|---|
System. |