Partilhar via


IAuthenticationSchemeProvider.TryAddScheme(AuthenticationScheme) Método

Definição

Registra um esquema para uso por 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

Parâmetros

scheme
AuthenticationScheme

O esquema.

Retornos

true se o esquema foi adicionado com êxito.

Aplica-se a