QueryStringParameter Constructor (String, String, Boolean, Boolean)

Initializes a new instance of the QueryStringParameter class with values for the Name, Value, UrlEncode and UseToGroupResults properties.

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

Syntax

'Declaration
Public Sub New ( _
    parameterName As String, _
    parameterValue As String, _
    urlEncode As Boolean, _
    useToGroupResults As Boolean _
)
public QueryStringParameter(
    string parameterName,
    string parameterValue,
    bool urlEncode,
    bool useToGroupResults
)
public:
QueryStringParameter(
    String^ parameterName, 
    String^ parameterValue, 
    bool urlEncode, 
    bool useToGroupResults
)
new : 
        parameterName:string * 
        parameterValue:string * 
        urlEncode:bool * 
        useToGroupResults:bool -> QueryStringParameter
public function QueryStringParameter(
    parameterName : String, 
    parameterValue : String, 
    urlEncode : boolean, 
    useToGroupResults : boolean
)

Parameters

  • parameterName
    Type: String

    The parameter name to set.

  • parameterValue
    Type: String

    The parameter value to set.

  • urlEncode
    Type: Boolean

    Indicates whether to URL encode the querystring parameter name and value.

  • useToGroupResults
    Type: Boolean

    Indicates whether to use this parameter to group results. The parameter is used if it changes the content of the page. The grouped results enable the user to have separate results captured for each value of the querystring parameter instead of a single set of results for the page.

.NET Framework Security

See Also

Reference

QueryStringParameter Class

QueryStringParameter Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace