IAuthenticationSchemeProvider.TryAddScheme(AuthenticationScheme) Metoda

Definicja

Rejestruje schemat do użycia przez IAuthenticationServiceprogram .

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

Parametry

scheme
AuthenticationScheme

Schemat.

Zwraca

wartość true, jeśli schemat został pomyślnie dodany.

Dotyczy