Share via


QueryStringParameter Class

Represents an HTTP querystring parameter.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.WebTesting.Parameter
    Microsoft.VisualStudio.TestTools.WebTesting.QueryStringParameter

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

Syntax

'Declaration
<SerializableAttribute> _
Public Class QueryStringParameter _
    Inherits Parameter
[SerializableAttribute]
public class QueryStringParameter : Parameter
[SerializableAttribute]
public ref class QueryStringParameter : public Parameter
[<SerializableAttribute>]
type QueryStringParameter =  
    class 
        inherit Parameter 
    end
public class QueryStringParameter extends Parameter

The QueryStringParameter type exposes the following members.

Constructors

  Name Description
Public method QueryStringParameter() Initializes a new instance of the QueryStringParameter class with default value for UrlEncode.
Public method QueryStringParameter(String, String) Initializes a new instance of the QueryStringParameter class with the specified name and value.
Public method QueryStringParameter(String, String, Boolean, Boolean) Initializes a new instance of the QueryStringParameter class with values for the Name, Value, UrlEncode and UseToGroupResults properties.

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 UseToGroupResults Gets or sets a value that indicates whether this parameter should be used to uniquely identify a request.
Public property Value Gets or sets the string value of the parameter. (Inherited from Parameter.)

Top

Methods

  Name Description
Public method Clone Performs a MemberwiseClone clone of this QueryStringParameter instance. (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 class is serializable.

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