DefaultCredentialsLoader.LoadCredentialsIfNeededAsync 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.
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
override this.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
Implements
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for