Skip to content

PageAuthorizeAttribute class

namespace: Serenity.Web   assemblySerenity.Net.Web

Authorizes access to a controller action. Optionally checks the permission provided as the first argument. Use special permission key ? to check for logged-in users, and * to allow anyone including anonymous access.

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
public class PageAuthorizeAttribute : TypeFilterAttribute

Public Members

name description
PageAuthorizeAttribute() Initializes a new instance of the PageAuthorizeAttribute class.
PageAuthorizeAttribute(…) Initializes an instance of the PageAuthorizeAttribute class, while reading the permission key from the NavigationPermissionAttribute or ReadPermissionAttribute of the source type. (4 constructors)
Permission { get; } Gets the permission key.
override Equals(…)
override GetHashCode()

Protected Members

name description
PageAuthorizeAttribute(…) Initializes a new instance of the PageAuthorizeAttribute class.

See Also