src/Microsoft/Authorization/Extensions/src/AuthorizationOptionsExtensions.cs
/// <summary>
/// Adds the same policy for each specified name.
/// </summary>
/// <param name="options"></param>
/// <param name="policy"></param>
/// <param name="names"></param>
/// <returns></returns>
Adds the same policy for each specified name.
Adds the same policy for each specified name .
public static AuthorizationOptions AddPolicyForEach(this AuthorizationOptions options, AuthorizationPolicy policy, params string[] names)
        {
            foreach (var name in names) {
                options.AddPolicy(name, policy);
            }
            return options;
        }
public static AuthorizationOptions AddPolicyForEach ( this AuthorizationOptions options , AuthorizationPolicy policy , params string [ ] names ) { foreach ( var name in names ) { options . AddPolicy ( name , policy ) ; } return options ; }
Adds the same policy for each specified name.
Adds the same policy for each specified name .
None
AuthorizationOptions
this
policy
AuthorizationPolicy
None
options
None
names
None