Share via


WebTestPlugin.PreRequest Method

When overridden in a derived class, 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 Overridable Sub PreRequest ( _
    sender As Object, _
    e As PreRequestEventArgs _
)
public virtual void PreRequest(
    Object sender,
    PreRequestEventArgs e
)
public:
virtual void PreRequest(
    Object^ sender, 
    PreRequestEventArgs^ e
)
abstract PreRequest : 
        sender:Object * 
        e:PreRequestEventArgs -> unit  
override PreRequest : 
        sender:Object * 
        e:PreRequestEventArgs -> unit
public function PreRequest(
    sender : Object, 
    e : PreRequestEventArgs
)

Parameters

  • sender
    Type: Object

    The source of the event.

Remarks

Because this method is virtual, the author of the WebTestPlugin can decide whether to implement it. If it is not implemented, the base class implementation is called, but it does nothing other than to return immediately.

.NET Framework Security

See Also

Reference

WebTestPlugin Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace