DataCollector Class
Provides a base class for custom diagnostic data adapters.
Inheritance Hierarchy
Object
Microsoft.VisualStudio.TestTools.Execution.DataCollector
Namespace: Microsoft.VisualStudio.TestTools.Execution
Assembly: Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Syntax
'Declaration
Public MustInherit Class DataCollector _
Implements IDisposable
public abstract class DataCollector : IDisposable
public ref class DataCollector abstract : IDisposable
[<AbstractClass>]
type DataCollector =
class
interface IDisposable
end
public abstract class DataCollector implements IDisposable
The DataCollector type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DataCollector | Initializes a new instance of the DataCollector class. |
Top
Methods
Name | Description | |
---|---|---|
Dispose() | Releases all resources that are used by the DataCollector. | |
Dispose(Boolean) | Releases the unmanaged resources that are used by the DataCollector and optionally releases the managed resources. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize | Called by the testing framework to initialize the internal objects and data for a custom diagnostic data adapter. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.VisualStudio.TestTools.Execution Namespace
Other Resources
Creating a Diagnostic Data Adapter to Collect Custom Data or Affect a Test Machine