共用方式為


ITicketStore.RetrieveAsync 方法

定義

多載

RetrieveAsync(String)

從指定金鑰的存放區擷取身分識別。

RetrieveAsync(String, CancellationToken)

從指定金鑰的存放區擷取身分識別。

RetrieveAsync(String, HttpContext, CancellationToken)

從指定金鑰的存放區擷取身分識別。

RetrieveAsync(String)

來源:
ITicketStore.cs

從指定金鑰的存放區擷取身分識別。

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)

參數

key
String

與身分識別相關聯的索引鍵。

傳回

與指定索引鍵相關聯的身分識別,如果找不到,則 null 為 。

適用於

RetrieveAsync(String, CancellationToken)

來源:
ITicketStore.cs

從指定金鑰的存放區擷取身分識別。

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)

參數

key
String

與身分識別相關聯的索引鍵。

cancellationToken
CancellationToken

用於散佈應取消作業通知的 CancellationToken

傳回

與指定索引鍵相關聯的身分識別,如果找不到,則 null 為 。

適用於

RetrieveAsync(String, HttpContext, CancellationToken)

來源:
ITicketStore.cs

從指定金鑰的存放區擷取身分識別。

public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket?> RetrieveAsync (string key, Microsoft.AspNetCore.Http.HttpContext httpContext, System.Threading.CancellationToken cancellationToken);
abstract member RetrieveAsync : string * Microsoft.AspNetCore.Http.HttpContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
override this.RetrieveAsync : string * Microsoft.AspNetCore.Http.HttpContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
Public Overridable Function RetrieveAsync (key As String, httpContext As HttpContext, cancellationToken As CancellationToken) As Task(Of AuthenticationTicket)

參數

key
String

與身分識別相關聯的索引鍵。

httpContext
HttpContext

HttpContext與目前要求相關聯的 。

cancellationToken
CancellationToken

用於散佈應取消作業通知的 CancellationToken

傳回

與指定索引鍵相關聯的身分識別,如果找不到,則 null 為 。

適用於