Specifies the user name and password for ASP.NET sites that require basic authentication or Windows authentication. This class cannot be inherited.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Initializes a new instance of theclass with a user name and password needed to access the test Web site.
|CredentialAttribute(String, String, String)|
Initializes a new instance of theclass with a user name, password and domain needed to access the test Web site.
|_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)|
|_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)|
|_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)|
If a site uses Windows Authentication, the supplied credentials will override the logged in user's credentials.
This attribute targets methods. Only one instance of this attribute may be applied to a method.
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.
For more information about how to use attributes, see Extending Metadata Using Attributes.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.