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.
Assembly: Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
abstract Initialize : configurationElement:XmlElement * events:DataCollectionEvents * dataSink:DataCollectionSink * logger:DataCollectionLogger * environmentContext:DataCollectionEnvironmentContext -> unit
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.
Show: