共用方式為


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)

屬性值

型別:System.String
字串,含有用來傳回回應的 HTTP 方法。

例外狀況

例外狀況 條件
ObjectDisposedException

已經處置目前的執行個體。

備註

通用 HTTP 方法包括 GET、HEAD、POST、PUT 和 DELETE。

.NET Framework 安全性

請參閱

參考

WebTestResponse 類別

Microsoft.VisualStudio.TestTools.WebTesting 命名空間

其他資源

HTTP