Delen via


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
AllowAnonymousAttribute
Attributes

Constructors

AllowAnonymousAttribute()

Initializes a new instance of the AllowAnonymousAttribute class.

Applies to