WebTestRequestHeaderCollection.Add Method (String, String)

Adds a WebTestRequestHeaderCollection 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 ( _
    name As String, _
    value As String _
)
public void Add(
    string name,
    string value
)
public:
void Add(
    String^ name, 
    String^ value
)
member Add : 
        name:string * 
        value:string -> unit
public function Add(
    name : String, 
    value : String
)

Parameters

  • name
    Type: String

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

  • value
    Type: String

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

.NET Framework Security

See Also

Reference

WebTestRequestHeaderCollection Class

Add Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace