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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TestTools.WebTesting Namespace