AuthorizationPolicyBuilder 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AuthorizationPolicyBuilder(AuthorizationPolicy) |
建立 AuthorizationPolicyBuilder 的新執行個體。 |
AuthorizationPolicyBuilder(String[]) |
建立 AuthorizationPolicyBuilder 的新執行個體 |
AuthorizationPolicyBuilder(AuthorizationPolicy)
建立 AuthorizationPolicyBuilder 的新執行個體。
public:
AuthorizationPolicyBuilder(Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ policy);
public AuthorizationPolicyBuilder (Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy);
new Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder : Microsoft.AspNetCore.Authorization.AuthorizationPolicy -> Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder
Public Sub New (policy As AuthorizationPolicy)
參數
- policy
- AuthorizationPolicy
要複製的 AuthorizationPolicy。
適用於
AuthorizationPolicyBuilder(String[])
建立 AuthorizationPolicyBuilder 的新執行個體
public:
AuthorizationPolicyBuilder(... cli::array <System::String ^> ^ authenticationSchemes);
public AuthorizationPolicyBuilder (params string[] authenticationSchemes);
new Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder : string[] -> Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder
Public Sub New (ParamArray authenticationSchemes As String())
參數
- authenticationSchemes
- String[]
應該評估原則的驗證配置陣列。