Share via


AuthorizeAttribute Constructors

Definition

Overloads

AuthorizeAttribute()

Initializes a new instance of the AuthorizeAttribute class.

AuthorizeAttribute(String)

Initializes a new instance of the AuthorizeAttribute class with the specified policy.

AuthorizeAttribute()

Source:
AuthorizeAttribute.cs
Source:
AuthorizeAttribute.cs
Source:
AuthorizeAttribute.cs
Source:
AuthorizeAttribute.cs
Source:
AuthorizeAttribute.cs
Source:
AuthorizeAttribute.cs
Source:
AuthorizeAttribute.cs
Source:
AuthorizeAttribute.cs
Source:
AuthorizeAttribute.cs

Initializes a new instance of the AuthorizeAttribute class.

public:
 AuthorizeAttribute();
public AuthorizeAttribute ();
Public Sub New ()

Applies to

AuthorizeAttribute(String)

Source:
AuthorizeAttribute.cs
Source:
AuthorizeAttribute.cs
Source:
AuthorizeAttribute.cs
Source:
AuthorizeAttribute.cs
Source:
AuthorizeAttribute.cs
Source:
AuthorizeAttribute.cs
Source:
AuthorizeAttribute.cs
Source:
AuthorizeAttribute.cs
Source:
AuthorizeAttribute.cs

Initializes a new instance of the AuthorizeAttribute class with the specified policy.

public:
 AuthorizeAttribute(System::String ^ policy);
public AuthorizeAttribute (string policy);
new Microsoft.AspNetCore.Authorization.AuthorizeAttribute : string -> Microsoft.AspNetCore.Authorization.AuthorizeAttribute
Public Sub New (policy As String)

Parameters

policy
String

The name of the policy to require for authorization.

Applies to