다음을 통해 공유


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

See Also

Reference

WebTestResponse Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

HTTP