The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CredentialAttribute Constructor ()


Updated: April 27, 2016

Applies To: Windows PowerShell

Initializes a new instance of the CredentialAttribute class.

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

public CredentialAttribute()

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.

Return to top

Community Additions