Udostępnij za pośrednictwem


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
'Usage
Dim instance As CredentialAttribute 
Dim value As String 

value = instance.UserName
public string UserName { get; }
public:
property String^ UserName {
    String^ get ();
}
public function get UserName () : String

Property Value

Type: System.String
The user's user name.

.NET Framework Security

See Also

Reference

CredentialAttribute Class

CredentialAttribute Members

Microsoft.VisualStudio.TestTools.UnitTesting.Web Namespace

Other Resources

ASP.NET Unit Tests