WebTestRequest.Method 属性

获取或设置用于请求的方法。

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

语法

声明
Public Property Method As String
    Get
    Set
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)

属性值

类型:System.String
用于请求的方法。默认值为“GET”。

备注

它的值可以是“GET”或“POST”。

.NET Framework 安全性

请参见

参考

WebTestRequest 类

Microsoft.VisualStudio.TestTools.WebTesting 命名空间