This documentation is archived and is not being maintained.

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)

public abstract void PreRequest (
	Object sender,
	PreRequestEventArgs e
)
public abstract void PreRequest (
	Object sender, 
	PreRequestEventArgs e
)
public abstract function PreRequest (
	sender : Object, 
	e : PreRequestEventArgs
)

Parameters

sender

The object that fired the event.

e

A PreRequestEventArgs object.

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.

Show: