FormPostParameter Class

Represents an HTML form POST parameter.

Inheritance Hierarchy

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

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
<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

The FormPostParameter type exposes the following members.

Constructors

  Name Description
Public method FormPostParameter() Initializes a new instance of the FormPostParameter object.
Public method FormPostParameter(String, String) Initializes a new instance of the FormPostParameter object with a name/value pair.
Public method FormPostParameter(String, String, Boolean) Initializes a new instance of the FormPostParameter object with a form post parameter name/value pair and a Boolean value that indicates whether the FormPost Parameter is URL encoded.

Top

Properties

  Name Description
Public property Name Gets or sets the parameter name. (Inherited from Parameter.)
Public property UrlEncode Gets or sets a value that indicates whether the Name and Value will be URL encoded. (Inherited from Parameter.)
Public property Value Gets or sets the string value of the parameter. (Inherited from Parameter.)

Top

Methods

  Name Description
Public method Clone Creates a clone of the FormPostParameter object. (Overrides Parameter.Clone().)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

This is stored as an attribute/value pair that is identified by the Name and Value properties. Form POST parameters are collected from HTML tags that represent Submit Buttons, Text Fields, Radio Buttons, Check Boxes, Hidden Fields, and Password Fields among other tags that contain information to be transmitted to the server by using an HTTP post.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

Working with Web Tests