Dela via


WebTest.BeginTransaction Method

Starts a transaction timer by using the specified name.

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

Syntax

'Declaration
Public Sub BeginTransaction ( _
    transactionName As String _
)
public void BeginTransaction(
    string transactionName
)
public:
void BeginTransaction(
    String^ transactionName
)
member BeginTransaction : 
        transactionName:string -> unit 
public function BeginTransaction(
    transactionName : String
)

Parameters

  • transactionName
    Type: System.String
    The name of a transaction timer.

Exceptions

Exception Condition
ArgumentNullException

transactionName is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

WebTest Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

How to: Add a Transaction to a Web Performance Test