Represents the method that will handle the event associated with the start of an HTTP request.
Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public Overrides Sub PreRequest ( _
    sender As Object, _
    e As PreRequestEventArgs _
)
public override void PreRequest(
    Object sender,
    PreRequestEventArgs e
)
public:
virtual void PreRequest(
    Object^ sender, 
    PreRequestEventArgs^ e
) override
abstract PreRequest : 
        sender:Object * 
        e:PreRequestEventArgs -> unit  
override PreRequest : 
        sender:Object * 
        e:PreRequestEventArgs -> unit
public override function PreRequest(
    sender : Object, 
    e : PreRequestEventArgs
)
Parameters
- sender 
 Type: Object- The source of the event. 
- e 
 Type: Microsoft.VisualStudio.TestTools.WebTesting.PreRequestEventArgs- A PreRequestEventArgs that contains the event data. 
.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.