Dela via


WebTestPlugin.PrePage Method

When overridden in a derived class, represents the method that will handle the event associated with the start of a Web page.

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

Syntax

'Declaration
Public Overridable Sub PrePage ( _
    sender As Object, _
    e As PrePageEventArgs _
)
public virtual void PrePage(
    Object sender,
    PrePageEventArgs e
)
public:
virtual void PrePage(
    Object^ sender, 
    PrePageEventArgs^ e
)
abstract PrePage : 
        sender:Object * 
        e:PrePageEventArgs -> unit 
override PrePage : 
        sender:Object * 
        e:PrePageEventArgs -> unit 
public function PrePage(
    sender : Object, 
    e : PrePageEventArgs
)

Parameters

Remarks

The PrePage callback is called just before the primary request for a page is run. This enables outside code to effect the request.

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