WebTestRequestPlugin.PreRequest Method

When overridden in a derived class, this method allows outside code to affect the 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 object that fired the event.

Remarks

This is called just before the request is run. The called code must return the appropriate execution instruction. This allows it to change how execution occurs.

.NET Framework Security

See Also

Reference

WebTestRequestPlugin Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace