WebTestPlugin.PreTransaction Method
When overridden in a derived class, represents the method that will handle the event associated with the start of a transaction that is defined in the Web performance test.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public Overridable Sub PreTransaction ( _
sender As Object, _
e As PreTransactionEventArgs _
)
public virtual void PreTransaction(
Object sender,
PreTransactionEventArgs e
)
public:
virtual void PreTransaction(
Object^ sender,
PreTransactionEventArgs^ e
)
abstract PreTransaction :
sender:Object *
e:PreTransactionEventArgs -> unit
override PreTransaction :
sender:Object *
e:PreTransactionEventArgs -> unit
public function PreTransaction(
sender : Object,
e : PreTransactionEventArgs
)
Parameters
sender
Type: ObjectThe source of the event.
e
Type: Microsoft.VisualStudio.TestTools.WebTesting.PreTransactionEventArgsA PreTransactionEventArgs that contains the event data.
Remarks
The PreTransaction callback is called just before a transaction defined in the Web performance test is started.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.