Condividi tramite


IAuthenticationSchemeProvider.TryAddScheme(AuthenticationScheme) Metodo

Definizione

Registra uno schema per l'uso da parte di 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

Parametri

scheme
AuthenticationScheme

Schema.

Restituisce

true se lo schema è stato aggiunto correttamente.

Si applica a