AuthorizationPolicyBuilder Constructors
Definition
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.
Overloads
AuthorizationPolicyBuilder(AuthorizationPolicy) |
Creates a new instance of AuthorizationPolicyBuilder. |
AuthorizationPolicyBuilder(String[]) |
Creates a new instance of AuthorizationPolicyBuilder |
AuthorizationPolicyBuilder(AuthorizationPolicy)
Creates a new instance of 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)
Parameters
- policy
- AuthorizationPolicy
The AuthorizationPolicy to copy.
Applies to
AuthorizationPolicyBuilder(String[])
Creates a new instance of 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())
Parameters
- authenticationSchemes
- String[]
An array of authentication schemes the policy should be evaluated against.