WebAuthenticationCoreManager.GetTokenSilentlyAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetTokenSilentlyAsync(WebTokenRequest) |
Asynchronously attempts to get a token without showing any UI. The user will never be prompted to enter their credentials. |
GetTokenSilentlyAsync(WebTokenRequest, WebAccount) |
Asynchronously attempts to get a token without showing any UI. The user will never be prompted to enter their credentials. |
GetTokenSilentlyAsync(WebTokenRequest)
Asynchronously attempts to get a token without showing any UI. The user will never be prompted to enter their credentials.
public:
static IAsyncOperation<WebTokenRequestResult ^> ^ GetTokenSilentlyAsync(WebTokenRequest ^ request);
/// [Windows.Foundation.Metadata.Overload("GetTokenSilentlyAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<WebTokenRequestResult> GetTokenSilentlyAsync(WebTokenRequest const& request);
[Windows.Foundation.Metadata.Overload("GetTokenSilentlyAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<WebTokenRequestResult> GetTokenSilentlyAsync(WebTokenRequest request);
function getTokenSilentlyAsync(request)
Public Shared Function GetTokenSilentlyAsync (request As WebTokenRequest) As IAsyncOperation(Of WebTokenRequestResult)
Parameters
- request
- WebTokenRequest
The web token request.
Returns
An asynchronous request operation. On successful completion, contains a WebTokenRequestResult object representing the result of the web token request.
- Attributes
Remarks
Unlike RequestTokenAsync, you may call this method from background threads.
See also
Applies to
GetTokenSilentlyAsync(WebTokenRequest, WebAccount)
Asynchronously attempts to get a token without showing any UI. The user will never be prompted to enter their credentials.
public:
static IAsyncOperation<WebTokenRequestResult ^> ^ GetTokenSilentlyAsync(WebTokenRequest ^ request, WebAccount ^ webAccount);
/// [Windows.Foundation.Metadata.Overload("GetTokenSilentlyWithWebAccountAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<WebTokenRequestResult> GetTokenSilentlyAsync(WebTokenRequest const& request, WebAccount const& webAccount);
[Windows.Foundation.Metadata.Overload("GetTokenSilentlyWithWebAccountAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<WebTokenRequestResult> GetTokenSilentlyAsync(WebTokenRequest request, WebAccount webAccount);
function getTokenSilentlyAsync(request, webAccount)
Public Shared Function GetTokenSilentlyAsync (request As WebTokenRequest, webAccount As WebAccount) As IAsyncOperation(Of WebTokenRequestResult)
Parameters
- request
- WebTokenRequest
The web token request.
- webAccount
- WebAccount
The web account.
Returns
An asynchronous request operation. On successful completion, contains a WebTokenRequestResult object representing the result of the web token request.
- Attributes