The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WebTestPlugin.PrePage Method (Object, PrePageEventArgs)


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)

public virtual void PrePage(
	object sender,
	PrePageEventArgs e


Type: System.Object

The source of the event.

Type: Microsoft.VisualStudio.TestTools.WebTesting.PrePageEventArgs

A PrePageEventArgs that contains the event data.

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.

Legacy Code Example

Return to top