Provides an interface that adds the ability to raise events for diagnostic data adapters to custom test adapters.
Namespace:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Syntax
'Declaration
Public Interface IDataCollectionAwareTestAdapter
public interface IDataCollectionAwareTestAdapter
public interface class IDataCollectionAwareTestAdapter
type IDataCollectionAwareTestAdapter =  interface end
public interface IDataCollectionAwareTestAdapter
The IDataCollectionAwareTestAdapter type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| .gif) | DataCollectors | Gets or sets a DataCollectorNotifications object that can raise events for diagnostic data adapters. | 
Top
Examples
To implement this interface, you first add it to the class declaration for your derived test adapter.
public class MyTestAdapter : ITestAdapter, IDataCollectionAwareTestAdapter
Then in your test adapter code, you create a DataCollectors property that returns a DataCollectorNotifications object.
public DataCollectorNotifications DataCollectors { get; set; }
You can then use this object to raise events for diagnostic data adapters.
DataCollectors.RaiseCustomEvent(
    new MyCustomDataEventArgs(), 
    NotificationBroadCastLevel.All);
See Also
Reference
Microsoft.VisualStudio.TestTools.Execution Namespace
Other Resources
Creating a Diagnostic Data Adapter to Collect Custom Data or Affect a Test Machine