共用方式為


AuthorizationPolicyBuilder.AddAuthenticationSchemes(String[]) 方法

定義

將指定的驗證 schemes 加入 AuthenticationSchemes 至這個實例的 。

public:
 Microsoft::AspNetCore::Authorization::AuthorizationPolicyBuilder ^ AddAuthenticationSchemes(... cli::array <System::String ^> ^ schemes);
public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder AddAuthenticationSchemes (params string[] schemes);
member this.AddAuthenticationSchemes : string[] -> Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder
Public Function AddAuthenticationSchemes (ParamArray schemes As String()) As AuthorizationPolicyBuilder

參數

schemes
String[]

要加入的配置。

傳回

完成作業之後,這個執行個體的參考。

適用於