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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for