ExtractHiddenFields.Extract Method
Extracts all hidden fields found in the body of the response and adds the unique hidden fields to the WebTestContext.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting.Rules
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public Overrides Sub Extract ( _
sender As Object, _
e As ExtractionEventArgs _
)
public override void Extract(
Object sender,
ExtractionEventArgs e
)
public:
virtual void Extract(
Object^ sender,
ExtractionEventArgs^ e
) override
abstract Extract :
sender:Object *
e:ExtractionEventArgs -> unit
override Extract :
sender:Object *
e:ExtractionEventArgs -> unit
public override function Extract(
sender : Object,
e : ExtractionEventArgs
)
Parameters
sender
Type: ObjectThe object raising the event.
e
Type: Microsoft.VisualStudio.TestTools.WebTesting.ExtractionEventArgsAn ExtractionEventArgs that contains the request, response, and context event data.
Remarks
If hidden fields within the context have the same identifier as the fields being extracted, the hidden fields in the context are removed from the context and replaced by the extracted hidden fields.
.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.