Share via


WebTestResponse.Method Property

Gets the method that is used to return the response.

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

Syntax

'Declaration
Public ReadOnly Property Method As String
'Usage
Dim instance As WebTestResponse 
Dim value As String 

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

Property Value

Type: System.String
A string that contains the HTTP method that is used to return the response.

Exceptions

Exception Condition
ObjectDisposedException

The current instance has been disposed.

Remarks

Common HTTP methods are GET, HEAD, POST, PUT, and DELETE.

.NET Framework Security

See Also

Reference

WebTestResponse Class

WebTestResponse Members

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

HTTP