Export (0) Print
Expand All
Expand Minimize

PSCredentialUIOptions Enumeration

Defines the options that are available, such as different validation options, when prompting for credentials.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As PSCredentialUIOptions

[FlagsAttribute] 
public enum PSCredentialUIOptions
/** @attribute FlagsAttribute() */ 
public enum PSCredentialUIOptions
FlagsAttribute 
public enum PSCredentialUIOptions

Member nameDescription
AlwaysPromptAlways prompts, even if a persisted credential is available.
DefaultValidates the user name, but not its existence or correctness.
NonePerforms no validation.
ReadOnlyUserNameRepresents a read-only user name that the user may not modify.
ValidateUserNameSyntaxValidates the syntax of the user name, but not its existence or correctness.

These constants are used when prompting for credentials using the PromptForCredential method.


 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft