WebTest.PreRequest Event

Occurs before each request this Web test runs.

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

Syntax

'Declaration
Public Event PreRequest As EventHandler(Of PreRequestEventArgs)
'Usage
Dim instance As WebTest 
Dim handler As EventHandler(Of PreRequestEventArgs)

AddHandler instance.PreRequest, handler
public event EventHandler<PreRequestEventArgs> PreRequest
public:
 event EventHandler<PreRequestEventArgs^>^ PreRequest {
    void add (EventHandler<PreRequestEventArgs^>^ value);
    void remove (EventHandler<PreRequestEventArgs^>^ value);
}
JScript does not support events.

Remarks

For more information about how to handle events, see Consuming Events.

.NET Framework Security

See Also

Reference

WebTest Class

WebTest Members

Microsoft.VisualStudio.TestTools.WebTesting Namespace