FormPostParameter 类

表示一个 HTML 窗体发送参数。

继承层次结构

Object
  Microsoft.VisualStudio.TestTools.WebTesting.Parameter
    Microsoft.VisualStudio.TestTools.WebTesting.FormPostParameter
      Microsoft.VisualStudio.TestTools.WebTesting.FileUploadParameter

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

语法

声明
<SerializableAttribute> _
Public Class FormPostParameter _
    Inherits Parameter
[SerializableAttribute]
public class FormPostParameter : Parameter
[SerializableAttribute]
public ref class FormPostParameter : public Parameter
[<SerializableAttribute>]
type FormPostParameter =  
    class 
        inherit Parameter 
    end
public class FormPostParameter extends Parameter

FormPostParameter 类型公开以下成员。

构造函数

  名称 说明
公共方法 FormPostParameter() 初始化 FormPostParameter 对象的新实例。
公共方法 FormPostParameter(String, String) 用名称/值对初始化 FormPostParameter 对象的新实例。
公共方法 FormPostParameter(String, String, Boolean) 使用窗体发布参数的名称/值对和一个指示窗体发布参数是否为 URL 编码的布尔值,初始化 FormPostParameter 对象的新实例。

页首

属性

  名称 说明
公共属性 Name 获取或设置参数名。 (继承自 Parameter。)
公共属性 UrlEncode 获取或设置一个值,该值指示 NameValue 是否将进行 URL 编码。 (继承自 Parameter。)
公共属性 Value 获取或设置参数的字符串值。 (继承自 Parameter。)

页首

方法

  名称 说明
公共方法 Clone 创建 FormPostParameter 对象的复本。 (重写 Parameter.Clone()。)
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 在垃圾回收将某一对象回收前允许该对象尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

备注

这将作为特性/值对来存储,该特性/值对由 Name 和 Value 属性标识。 窗体发送参数来自表示提交按钮、文本字段、单选按钮、复选框、隐藏字段和密码字段的 HTML 标记,以及其他包含要通过 HTTP 发送传输至服务器的信息的标记。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.TestTools.WebTesting 命名空间

其他资源

Working with Web Tests