共用方式為


IAuthorizationRequirementData.GetRequirements 方法

定義

IAuthorizationRequirement應該滿足授權的傳回。

public System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authorization.IAuthorizationRequirement> GetRequirements ();
abstract member GetRequirements : unit -> seq<Microsoft.AspNetCore.Authorization.IAuthorizationRequirement>
Public Function GetRequirements () As IEnumerable(Of IAuthorizationRequirement)

傳回

IAuthorizationRequirement 用於授權。

適用於