AuthorizeAttribute 构造函数

定义

重载

AuthorizeAttribute()

初始化 AuthorizeAttribute 类的新实例。

AuthorizeAttribute(String)

使用指定的策略初始化 类的新实例 AuthorizeAttribute

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

初始化 AuthorizeAttribute 类的新实例。

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

适用于

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

使用指定的策略初始化 类的新实例 AuthorizeAttribute

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)

参数

policy
String

授权所需的策略名称。

适用于