Skip to content

AuthenticationPropertiesExtensions Class

Extension methods for Microsoft.AspNetCore.Authentication.AuthenticationProperties.

C#
public static class AuthenticationPropertiesExtensions

Inheritance System.Object → AuthenticationPropertiesExtensions

Methods

AuthenticationPropertiesExtensions.TryGetStringList(this AuthenticationProperties, string, List<string>) Method

Attempts to retrieve a list of strings from authentication properties. The value is expected to be a JSON-serialized array of strings.

C#
public static bool TryGetStringList(this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string key, out System.Collections.Generic.List<string>? values);

Parameters

properties Microsoft.AspNetCore.Authentication.AuthenticationProperties
key System.String
values System.Collections.Generic.List<System.String>

Returns

System.Boolean