1 out of 2 rated this helpful - Rate this topic

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.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ