WebAuthenticationCoreManager.RequestTokenAsync Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
RequestTokenAsync(WebTokenRequest) |
Secara asinkron meminta token dari penyedia akun web. Jika perlu, pengguna diminta untuk memasukkan kredensial mereka. |
RequestTokenAsync(WebTokenRequest, WebAccount) |
Secara asinkron meminta token dari penyedia akun web. Jika perlu, pengguna diminta untuk memasukkan kredensial mereka. |
RequestTokenAsync(WebTokenRequest)
Secara asinkron meminta token dari penyedia akun web. Jika perlu, pengguna diminta untuk memasukkan kredensial mereka.
public:
static IAsyncOperation<WebTokenRequestResult ^> ^ RequestTokenAsync(WebTokenRequest ^ request);
/// [Windows.Foundation.Metadata.Overload("RequestTokenAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<WebTokenRequestResult> RequestTokenAsync(WebTokenRequest const& request);
[Windows.Foundation.Metadata.Overload("RequestTokenAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<WebTokenRequestResult> RequestTokenAsync(WebTokenRequest request);
function requestTokenAsync(request)
Public Shared Function RequestTokenAsync (request As WebTokenRequest) As IAsyncOperation(Of WebTokenRequestResult)
Parameter
- request
- WebTokenRequest
Permintaan token web.
Mengembalikan
Operasi permintaan asinkron. Setelah berhasil diselesaikan, berisi objek WebTokenRequestResult yang mewakili hasil permintaan token web.
- Atribut
Keterangan
Metode ini tidak dapat dipanggil dari aplikasi desktop atau dari utas latar belakang aplikasi UWP. Untuk metode yang setara dengan metode ini untuk aplikasi desktop, lihat IWebAuthenticationCoreManagerInterop::RequestTokenForWindowAsync.
Lihat juga
- RequestTokenAsync(WebTokenRequest, WebAccount)
- Sampel kode manajemen akun web
- IWebAuthenticationCoreManagerInterop::RequestTokenForWindowAsync
- Antarmuka IWebAuthenticationCoreManagerInterop
Berlaku untuk
RequestTokenAsync(WebTokenRequest, WebAccount)
Secara asinkron meminta token dari penyedia akun web. Jika perlu, pengguna diminta untuk memasukkan kredensial mereka.
public:
static IAsyncOperation<WebTokenRequestResult ^> ^ RequestTokenAsync(WebTokenRequest ^ request, WebAccount ^ webAccount);
/// [Windows.Foundation.Metadata.Overload("RequestTokenWithWebAccountAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<WebTokenRequestResult> RequestTokenAsync(WebTokenRequest const& request, WebAccount const& webAccount);
[Windows.Foundation.Metadata.Overload("RequestTokenWithWebAccountAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<WebTokenRequestResult> RequestTokenAsync(WebTokenRequest request, WebAccount webAccount);
function requestTokenAsync(request, webAccount)
Public Shared Function RequestTokenAsync (request As WebTokenRequest, webAccount As WebAccount) As IAsyncOperation(Of WebTokenRequestResult)
Parameter
- request
- WebTokenRequest
Permintaan token web.
- webAccount
- WebAccount
Akun web untuk permintaan tersebut.
Mengembalikan
Operasi permintaan asinkron. Setelah berhasil diselesaikan, berisi objek WebTokenRequestResult yang mewakili hasil permintaan token web.
- Atribut
Keterangan
Metode ini tidak dapat dipanggil dari aplikasi desktop atau dari utas latar belakang aplikasi UWP. Untuk metode yang setara dengan metode ini untuk aplikasi desktop, lihat IWebAuthenticationCoreManagerInterop::RequestTokenWithWebAccountForWindowAsync.
Lihat juga
M:Windows.Security.Authentication.Web.Core.WebAuthenticationCoreManager.RequestTokenAsync(Windows.Security.Authentication.Web.Core.WebTokenRequest)
IWebAuthenticationCoreManagerInterop::RequestTokenWithWebAccountForWindowAsync
Antarmuka IWebAuthenticationCoreManagerInterop
Berlaku untuk
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk