Поделиться через


DataCollector Class

Provides a base class for custom diagnostic data adapters.

Inheritance Hierarchy

System.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 a hash function for a particular type. (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

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.

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