Dela via


FormPostParameterCollection.Add Method (String, String, Boolean)

Adds a FormPostParameter created from a parameter name and value and a value that indicates whether the form post parameter is URL encoded.

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 _
)
public void Add(
    string parameterName,
    string parameterValue,
    bool urlEncode
)
public:
void Add(
    String^ parameterName, 
    String^ parameterValue, 
    bool urlEncode
)
member Add : 
        parameterName:string * 
        parameterValue:string * 
        urlEncode:bool -> unit 
public function Add(
    parameterName : String, 
    parameterValue : String, 
    urlEncode : boolean
)

Parameters

  • urlEncode
    Type: System.Boolean
    true if the form post parameter is URL encoded; otherwise, false.

Remarks

Duplicate elements can be added.

Example

.NET Framework Security

See Also

Reference

FormPostParameterCollection Class

Add Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace