共用方式為


TestExecution.AfterClassCleanup Event

Occurs after the class finishes cleanup.

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

Syntax

'Declaration
Public MustOverride Event AfterClassCleanup As EventHandler(Of AfterClassCleanupEventArgs)
public abstract event EventHandler<AfterClassCleanupEventArgs> AfterClassCleanup
public:
virtual   event EventHandler<AfterClassCleanupEventArgs^>^ AfterClassCleanup {
    void add (EventHandler<AfterClassCleanupEventArgs^>^ value);
    void remove (EventHandler<AfterClassCleanupEventArgs^>^ value);
}
abstract AfterClassCleanup : IEvent<EventHandler<AfterClassCleanupEventArgs>,
    AfterClassCleanupEventArgs>
JScript does not support events.

.NET Framework Security

See Also

Reference

TestExecution Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace