Partager via


DataCollectionEnvironmentContext Class

Encapsulates the environment where a diagnostic data adapter is hosted.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.Execution.DataCollectionEnvironmentContext

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

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class DataCollectionEnvironmentContext
[SerializableAttribute]
public sealed class DataCollectionEnvironmentContext
[SerializableAttribute]
public ref class DataCollectionEnvironmentContext sealed
[<Sealed>]
[<SerializableAttribute>]
type DataCollectionEnvironmentContext =  class end
public final class DataCollectionEnvironmentContext

The DataCollectionEnvironmentContext type exposes the following members.

Constructors

  Name Description
Public method DataCollectionEnvironmentContext(AgentContext, ControllerContext, DataCollectionContext) Initializes a new instance of the DataCollectionEnvironmentContext class by using the provided agent context, controller context, and session data collection context.
Public method DataCollectionEnvironmentContext(AgentContext, ControllerContext, DataCollectionContext, TcmContext) Initializes a new instance of the DataCollectionEnvironmentContext class by using the provided agent context, controller context, session data collection context, and test case manager context.

Top

Properties

  Name Description
Public property AgentContext Gets the agent context. The set accessor is for internal use only.
Public property ControllerContext Gets the test controller context. The set accessor is for internal use only.
Public property IsManualTest
Public property SessionDataCollectionContext Gets the session context for a diagnostic data adapter. The set accessor is for internal use only.
Public property TcmContext Gets the context for the test case manager.

Top

Methods

  Name Description
Public methodStatic member CreateForLocalEnvironment() Returns a data collection environment context for a locally hosted agent and controller.
Public methodStatic member CreateForLocalEnvironment(DataCollectionContext) Returns a data collection environment context for a locally hosted agent and controller by using the provided session data collection context.
Public method Equals Determines whether the specified object is equal to the current object. (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 ToString Returns a string that represents the current object. (Inherited from Object.)

Top

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