Partager via


ICredentialsLoader.LoadCredentialsIfNeededAsync Method

Definition

Load a given credential description, if needed. This method will leverage the CredentialSourceLoaders to load the credentials from the description.

public System.Threading.Tasks.Task LoadCredentialsIfNeededAsync (Microsoft.Identity.Abstractions.CredentialDescription credentialDescription, Microsoft.Identity.Abstractions.CredentialSourceLoaderParameters? parameters = default);
abstract member LoadCredentialsIfNeededAsync : Microsoft.Identity.Abstractions.CredentialDescription * Microsoft.Identity.Abstractions.CredentialSourceLoaderParameters -> System.Threading.Tasks.Task
Public Function LoadCredentialsIfNeededAsync (credentialDescription As CredentialDescription, Optional parameters As CredentialSourceLoaderParameters = Nothing) As Task

Parameters

credentialDescription
CredentialDescription

Description of the credentials to load.

parameters
CredentialSourceLoaderParameters

Parameters, related to the host application, that the credential source loader can use.

Returns

Applies to