ITicketStore.RetrieveAsync Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
| RetrieveAsync(String) |
Načte identitu z úložiště pro daný klíč. |
| RetrieveAsync(String, CancellationToken) |
Načte identitu z úložiště pro daný klíč. |
RetrieveAsync(String)
Načte identitu z úložiště pro daný klíč.
public:
System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticationTicket ^> ^ RetrieveAsync(System::String ^ key);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket> RetrieveAsync (string key);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket?> RetrieveAsync (string key);
abstract member RetrieveAsync : string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
Public Function RetrieveAsync (key As String) As Task(Of AuthenticationTicket)
Parametry
- key
- String
Klíč přidružený k identitě.
Návraty
Identita přidružená k danému klíči nebo null , pokud nebyla nalezena.
Platí pro
RetrieveAsync(String, CancellationToken)
Načte identitu z úložiště pro daný klíč.
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket?> RetrieveAsync (string key, System.Threading.CancellationToken cancellationToken);
abstract member RetrieveAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
override this.RetrieveAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
Public Overridable Function RetrieveAsync (key As String, cancellationToken As CancellationToken) As Task(Of AuthenticationTicket)
Parametry
- key
- String
Klíč přidružený k identitě.
- cancellationToken
- CancellationToken
Používá CancellationToken se k šíření oznámení, že by měla být operace zrušena.
Návraty
Identita přidružená k danému klíči nebo null , pokud nebyla nalezena.