WebTestRequestHeaderCollection.Contains Method (String)
Returns a value that indicates whether a WebTestRequestHeader occurs in this collection.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public Function Contains ( _
headerName As String _
) As Boolean
public bool Contains(
string headerName
)
public:
bool Contains(
String^ headerName
)
member Contains :
headerName:string -> bool
public function Contains(
headerName : String
) : boolean
Parameters
- headerName
Type: System.String
The name of the WebTestRequestHeader to look for in this collection.
Return Value
Type: System.Boolean
true if the WebTestRequestHeader occurs in this collection; otherwise, false.
.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.