Condividi tramite


Proprietà WebTestResponse.Method

Ottiene il metodo utilizzato per restituire la risposta.

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

Sintassi

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

Valore proprietà

Tipo: System.String
Stringa in cui è contenuto il metodo HTTP utilizzato per restituire la risposta.

Eccezioni

Eccezione Condizione
ObjectDisposedException

L'istanza corrente è stata eliminata.

Note

I metodi HTTP più comuni sono GET, HEAD, POST, PUT e DELETE.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

WebTestResponse Classe

Spazio dei nomi Microsoft.VisualStudio.TestTools.WebTesting

Altre risorse

HTTP