Partager via


QueryStringParameterCollection.Add Method (String, String, Boolean, Boolean)

Adds a QueryStringParameter created from a parameter name and value.

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

Syntax

'Declaration
Public Sub Add ( _
    parameterName As String, _
    parameterValue As String, _
    urlEncode As Boolean, _
    useToGroupResults As Boolean _
)
public void Add(
    string parameterName,
    string parameterValue,
    bool urlEncode,
    bool useToGroupResults
)
public:
void Add(
    String^ parameterName, 
    String^ parameterValue, 
    bool urlEncode, 
    bool useToGroupResults
)
member Add : 
        parameterName:string * 
        parameterValue:string * 
        urlEncode:bool * 
        useToGroupResults:bool -> unit
public function Add(
    parameterName : String, 
    parameterValue : String, 
    urlEncode : boolean, 
    useToGroupResults : boolean
)

Parameters

  • parameterName
    Type: String

    The name of the QueryStringParameter to be created and then added to the collection.

  • parameterValue
    Type: String

    The value of the QueryStringParameter to be created and then added to the collection.

  • urlEncode
    Type: Boolean

    true if the query string parameter is URL encoded; otherwise, false.

  • useToGroupResults
    Type: Boolean

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

Remarks

Duplicate elements can be added.

.NET Framework Security

See Also

Reference

QueryStringParameterCollection Class

Add Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace