CredentialAttribute.UserName Property

Gets the user's user name.

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

Syntax

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

Property Value

Type: String
The user's user name.

.NET Framework Security

See Also

Reference

CredentialAttribute Class

Microsoft.VisualStudio.TestTools.UnitTesting.Web Namespace

Other Resources

ASP.NET Unit Tests