CredentialPromptType 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 CredentialPromptType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class CredentialPromptType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum CredentialPromptType
var value = Windows.Security.Authentication.OnlineId.CredentialPromptType.promptIfNeeded
Public Enum CredentialPromptType
Inheritance
CredentialPromptType
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

DoNotPrompt 2

Never show the UI, even if an error occurs.

PromptIfNeeded 0

Show the UI only if an error occurred.

RetypeCredentials 1

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

Applies to