WebTest.UserName Property

Gets and sets the user name that is used for authentication.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
Public Property UserName As String
public string UserName { get; set; }
public:
property String^ UserName {
    String^ get ();
    void set (String^ value);
}
member UserName : string with get, set
function get UserName () : String
function set UserName (value : String)

Property Value

Type: System.String
The user name that is used for authentication. The default value is an empty string.

.NET Framework Security

See Also

Reference

WebTest Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

How to: Set Credentials on a Web Performance Test