CredentialAttribute Constructor
Initializes a new instance of the CredentialAttribute class.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)
When this attribute is declared, Windows PowerShell uses the current host to determine whether any prompts are displayed to the user. For example, the default host provides a prompt for the user name and the password when this attribute is declared. For more information about using this attribute, see Credential Attribute Declaration.
Target Platforms
Windows Developer Preview, Windows Server Developer PreviewSend comments about this topic to Microsoft.