AuthorizeAttribute Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.