Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ExtractHttpHeader::Extract Method (Object^, ExtractionEventArgs^)

 

Extracts the value of an HTTP header from the response and places the value and context parameter name into the WebTestContext.

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

public:
virtual void Extract(
	Object^ sender,
	ExtractionEventArgs^ e
) override

Parameters

sender
Type: System::Object^

The object that fired the event.

e
Type: Microsoft.VisualStudio.TestTools.WebTesting::ExtractionEventArgs^

Contains request, response, and context information.

If the header does not exist and Required is true, e.Success is false.

Return to top
Show: