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 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)
Property Value
Type: 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