Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CredentialAttribute Constructor (String, String)

CredentialAttribute Constructor (String, String)

Initializes a new instance of the CredentialAttribute class with a user name and password needed to access the test Web site.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting.Web
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

public CredentialAttribute(
	string userName,
	string password
)

Parameters

userName
Type: System.String

The user to authenticate.

password
Type: System.String

The associated password for the user.

Caution noteCaution

The password is stored in plain text in source code and in the compiled assembly. Restrict access to the source code and assembly to help protect this sensitive information.

Show:
© 2015 Microsoft