Condividi tramite


Proprietà WebTest.UserName

Ottiene e imposta il nome utente utilizzato per l'autenticazione.

Spazio dei nomi:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Sintassi

'Dichiarazione
Public Property UserName As String
    Get
    Set
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)

Valore proprietà

Tipo: System.String
Nome utente utilizzato per l'autenticazione.Il valore predefinito è una stringa vuota.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

WebTest Classe

Spazio dei nomi Microsoft.VisualStudio.TestTools.WebTesting

Altre risorse

Procedura: impostare credenziali in un test Web