IDataCollector Interface
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Interface for creating custom diagnostic data adapters.
Namespace: Microsoft.VisualStudio.TestTools.Execution
Assembly: Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Syntax
'Declaration
Public Interface IDataCollector _
Inherits IDisposable
'Usage
Dim instance As IDataCollector
public interface IDataCollector : IDisposable
public interface class IDataCollector : IDisposable
type IDataCollector =
interface
interface IDisposable
end
public interface IDataCollector extends IDisposable
Remarks
Use the IDataCollector interface to create a custom diagnostic data adapter that you can incorporate into Visual Studio Team System Test and Lab Manager as an add-in to provide functionality that is specific to your testing needs.
Notes to Implementers
To create a custom diagnostic data adapter, you must perform the following tasks:
Implement the Initialize(XmlElement, DataCollectionEvents, DataCollectionSink, DataCollectionLogger) method to populate local class variables with the parameter values and register the events that will be used to implement the custom diagnostic data adapter's functionality.
Implement event handlers for the events that are registered in the Initialize(XmlElement, DataCollectionEvents, DataCollectionSink, DataCollectionLogger) method.
Implement a Dispose method to remove the events that are registered in the Initialize(XmlElement, DataCollectionEvents, DataCollectionSink, DataCollectionLogger) method.
The following list shows the events you can register and handle in a custom diagnostic data adapter:
See Also
Reference
Microsoft.VisualStudio.TestTools.Execution Namespace