Condividi tramite


TestContext.EndTimer Method

When overridden in a derived class, ends a timer with the specified name.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public MustOverride Sub EndTimer ( _
    timerName As String _
)
public abstract void EndTimer(
    string timerName
)
public:
virtual void EndTimer(
    String^ timerName
) abstract
abstract EndTimer : 
        timerName:string -> unit
public abstract function EndTimer(
    timerName : String
)

Parameters

  • timerName
    Type: String

    The name of the timer to end.

.NET Framework Security

See Also

Reference

TestContext Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

Other Resources

Using the TestContext Class