AllowAnonymousAttribute AllowAnonymousAttribute AllowAnonymousAttribute Class

Definition

Represents an attribute that marks controllers and actions to skip the AuthorizeAttribute during authorization.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class AllowAnonymousAttribute : Attribute
type AllowAnonymousAttribute = class
    inherit Attribute
Public NotInheritable Class AllowAnonymousAttribute
Inherits Attribute
Inheritance
AllowAnonymousAttributeAllowAnonymousAttributeAllowAnonymousAttribute
Attributes

Constructors

AllowAnonymousAttribute() AllowAnonymousAttribute() AllowAnonymousAttribute()

Initializes a new instance of the AllowAnonymousAttribute class.

Applies to