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.

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.

Syntax

Declaration

public enum CredentialPromptTypepublic enum CredentialPromptTypePublic Enum CredentialPromptTypepublic enum CredentialPromptType

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.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Security.Authentication.OnlineId.dll