Class NavigationAuthorizeAttribute
A custom authorization attribute for checking navigation authorization.
Inherited Members
Namespace: DataWeb.Filter
Assembly: DataWeb.Core.dll
Syntax
public sealed class NavigationAuthorizeAttribute : TypeFilterAttribute, IFilterFactory, IOrderedFilter, IFilterMetadata
Constructors
NavigationAuthorizeAttribute(ResponseMode, ResponseErrorCode)
The response mode of the attribute. Can be either StatusCode or Redirect.
Declaration
public NavigationAuthorizeAttribute(NavigationAuthorizeAttribute.ResponseMode responseMode = ResponseMode.StatusCode, NavigationAuthorizeAttribute.ResponseErrorCode responseErrorCode = ResponseErrorCode.Forbidden)
Parameters
Type | Name | Description |
---|---|---|
NavigationAuthorizeAttribute.ResponseMode | responseMode | |
NavigationAuthorizeAttribute.ResponseErrorCode | responseErrorCode |
Remarks
Uses NavigationAuthorizeAttribute.ResponseMode enum.