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: System.String
The name of the WebTestRequestHeader to be created and then added to the collection.
- value
Type: System.String
The value of the WebTestRequestHeader to be created and then added to the collection.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.