WebTestResponse.Method 属性

获取用于返回响应的方法。

命名空间:  Microsoft.VisualStudio.TestTools.WebTesting
程序集:  Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

语法

声明
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)

属性值

类型:String
一个字符串,包含用于返回响应的 HTTP 方法。

异常

异常 条件
ObjectDisposedException

已释放当前的实例。

备注

公共 HTTP 方法是 GET、HEAD、POST、PUT 和 DELETE。

.NET Framework 安全性

请参阅

参考

WebTestResponse 类

Microsoft.VisualStudio.TestTools.WebTesting 命名空间

其他资源

HTTP