NameAuthorizationRequirement Class
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.
Implements an IAuthorizationHandler and IAuthorizationRequirement which requires the current user name must match the specified value.
public ref class NameAuthorizationRequirement : Microsoft::AspNetCore::Authorization::AuthorizationHandler<Microsoft::AspNetCore::Authorization::Infrastructure::NameAuthorizationRequirement ^>, Microsoft::AspNetCore::Authorization::IAuthorizationRequirement
public class NameAuthorizationRequirement : Microsoft.AspNetCore.Authorization.AuthorizationHandler<Microsoft.AspNetCore.Authorization.Infrastructure.NameAuthorizationRequirement>, Microsoft.AspNetCore.Authorization.IAuthorizationRequirement
type NameAuthorizationRequirement = class
inherit AuthorizationHandler<NameAuthorizationRequirement>
interface IAuthorizationRequirement
Public Class NameAuthorizationRequirement
Inherits AuthorizationHandler(Of NameAuthorizationRequirement)
Implements IAuthorizationRequirement
- Inheritance
- Implements
Name |
Constructs a new instance of NameAuthorizationRequirement. |
Required |
Gets the required name that the current user must have. |
Handle |
Makes a decision if authorization is allowed. (Inherited from AuthorizationHandler<TRequirement>) |
Handle |
Makes a decision if authorization is allowed based on a specific requirement. |
Handle |
Makes a decision if authorization is allowed based on a specific requirement. (Inherited from AuthorizationHandler<TRequirement>) |
To |
Returns a string that represents the current object. |
ผลิตภัณฑ์ | เวอร์ชัน |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |