This documentation is archived and is not being maintained.

DataCollector Class

Provides a base class for custom diagnostic data adapters.


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

public abstract class DataCollector : IDisposable

The DataCollector type exposes the following members.

Protected methodDataCollectorInitializes a new instance of the DataCollector class.

Public methodDispose()Releases all resources that are used by the DataCollector.
Protected methodDispose(Boolean)Releases the unmanaged resources that are used by the DataCollector and optionally releases the managed resources.
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.)
Public methodInitializeCalled by the testing framework to initialize the internal objects and data for a custom diagnostic data adapter.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

With Microsoft Visual Studio 2010 Premium, you can create custom diagnostic data adapters to add functionality to the testing framework user interface (UI). Custom diagnostic data adapters must derive from this DataCollector class. For more information, see Creating a Diagnostic Data Adapter to Collect Custom Data or Affect a Test Machine.

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