Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataCollector::Initialize Method (XmlElement^, DataCollectionEvents^, DataCollectionSink^, DataCollectionLogger^, DataCollectionEnvironmentContext^)

 

Called by the testing framework to initialize the internal objects and data for a custom diagnostic data adapter.

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

public:
virtual void Initialize(
	XmlElement^ configurationElement,
	DataCollectionEvents^ events,
	DataCollectionSink^ dataSink,
	DataCollectionLogger^ logger,
	DataCollectionEnvironmentContext^ environmentContext
) abstract

Parameters

configurationElement
Type: System.Xml::XmlElement^

An XmlElement that has test configuration data.

events
Type: Microsoft.VisualStudio.TestTools.Execution::DataCollectionEvents^

A DataCollectionEvents object that has the events for which your custom diagnostic data adapter can register.

dataSink
Type: Microsoft.VisualStudio.TestTools.Execution::DataCollectionSink^

A DataCollectionSink object that your custom diagnostic data adapter can use to save files and data.

logger
Type: Microsoft.VisualStudio.TestTools.Execution::DataCollectionLogger^

A DataCollectionLogger object that your custom diagnostic data adapter can use to log information during a test.

environmentContext
Type: Microsoft.VisualStudio.TestTools.Execution::DataCollectionEnvironmentContext^

A DataCollectionEnvironmentContext that has information about the context of the current test.

When you create a custom diagnostic data adapter, you must implement this Initialize method, where you will register the events that you want to use.

Return to top
Show: