Credential​Prompt​Type Credential​Prompt​Type Credential​Prompt​Type Credential​Prompt​Type Enum

Definition

Provides the ability to control when to show or hide the credential prompt user interface. This includes the user interface for the app to collect user consent to access data stored in Live. The user must see the user interface in order for the app to obtain any user data, if not app will see an error when they try to obtain user data.

Note

If you are developing for Windows 10 or greater, use the Windows.Security.Authentication.Web.Core APIs instead. For more information, see Web account manager.

public : enum class CredentialPromptTypepublic enum CredentialPromptTypePublic Enum CredentialPromptType// You can use this enum in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

DoNotPrompt DoNotPrompt DoNotPrompt DoNotPrompt

Never show the UI, even if an error occurs.

PromptIfNeeded PromptIfNeeded PromptIfNeeded PromptIfNeeded

Show the UI only if an error occurred.

RetypeCredentials RetypeCredentials RetypeCredentials RetypeCredentials

Always show the UI. If a default username exists, the username is automatically inserted into the appropriate field.