We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

DataCollectionEvents Class

Defines the execution events that diagnostic data adapters can register.


Namespace:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

public abstract class DataCollectionEvents

The DataCollectionEvents type exposes the following members.

Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Public eventCustomNotificationOccurs in response to a custom notification.
Public eventDataRequestRaised to request intermediate data.
Public eventSessionEndRaised when a test session ends.
Public eventSessionPauseRaised when a test session pauses.
Public eventSessionResumeRaised when a test session resumes.
Public eventSessionStartRaised when a test session starts.
Public eventTestCaseEndRaised when a test case ends.
Public eventTestCaseFailed
Public eventTestCasePauseRaised when a test case pauses.
Public eventTestCaseResetRaised when a test case resets.
Public eventTestCaseResumeRaised when a test case resumes.
Public eventTestCaseStartRaised when a test case starts.
Public eventTestStepEndRaised when a test step ends.
Public eventTestStepStartRaised when a test step starts.

When you create a custom diagnostic data adapter, you must create event handlers for one or more events in this collection. For more information, see How to: Create a Diagnostic Data Adapter.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.