共用方式為


TestExecution.BeforeAssemblyCleanup Event

Occurs before the assembly starts cleanup.

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

Syntax

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

.NET Framework Security

See Also

Reference

TestExecution Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace