CredentialPromptType CredentialPromptType CredentialPromptType CredentialPromptType CredentialPromptType Enum


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.


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 CredentialPromptType
enum class winrt::Windows::Security::Authentication::OnlineId::CredentialPromptType : int32_t
public enum CredentialPromptType
Public Enum CredentialPromptType
var value = Windows.Security.Authentication.OnlineId.CredentialPromptType.doNotPrompt;

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


DoNotPrompt DoNotPrompt DoNotPrompt DoNotPrompt DoNotPrompt 2

Never show the UI, even if an error occurs.

PromptIfNeeded PromptIfNeeded PromptIfNeeded PromptIfNeeded PromptIfNeeded 0

Show the UI only if an error occurred.

RetypeCredentials RetypeCredentials RetypeCredentials RetypeCredentials RetypeCredentials 1

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