IAuthenticationSchemeProvider.TryAddScheme(AuthenticationScheme) Метод

Определение

Регистрирует схему для использования IAuthenticationService.

public:
 virtual bool TryAddScheme(Microsoft::AspNetCore::Authentication::AuthenticationScheme ^ scheme);
public virtual bool TryAddScheme (Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme);
abstract member TryAddScheme : Microsoft.AspNetCore.Authentication.AuthenticationScheme -> bool
override this.TryAddScheme : Microsoft.AspNetCore.Authentication.AuthenticationScheme -> bool
Public Overridable Function TryAddScheme (scheme As AuthenticationScheme) As Boolean

Параметры

scheme
AuthenticationScheme

Схема.

Возвращаемое значение

Значение true, если схема была успешно добавлена.

Применяется к