Compartilhar via


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
Protected method DataCollector Initializes a new instance of the DataCollector class.

Top

Methods

  Name Description
Public method Dispose() Releases all resources that are used by the DataCollector.
Protected method Dispose(Boolean) Releases the unmanaged resources that are used by the DataCollector and optionally releases the managed resources.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Initialize Called by the testing framework to initialize the internal objects and data for a custom diagnostic data adapter.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method 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