WebTestRequest.Method Property

Gets or sets the method to use for the request.

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; set; }
public:
property String^ Method {
    String^ get ();
    void set (String^ value);
}
member Method : string with get, set
function get Method () : String 
function set Method (value : String)

Property Value

Type: String
The method that is used for the request. The default value is "GET".

Remarks

The value for this can be either "GET" or "POST".

.NET Framework Security

See Also

Reference

WebTestRequest Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace