This documentation is archived and is not being maintained.

DataCollectionEnvironmentContext Class

Encapsulates the environment where a diagnostic data adapter is hosted.

System.Object
  Microsoft.VisualStudio.TestTools.Execution.DataCollectionEnvironmentContext

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

[SerializableAttribute]
public sealed class DataCollectionEnvironmentContext

The DataCollectionEnvironmentContext type exposes the following members.

  NameDescription
Public methodDataCollectionEnvironmentContext(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 methodDataCollectionEnvironmentContext(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

  NameDescription
Public propertyAgentContextGets the agent context. The set accessor is for internal use only.
Public propertyControllerContextGets the test controller context. The set accessor is for internal use only.
Public propertySessionDataCollectionContextGets the session context for a diagnostic data adapter. The set accessor is for internal use only.
Public propertyTcmContextGets the context for the test case manager.
Top

  NameDescription
Public methodStatic memberCreateForLocalEnvironment()Returns a data collection environment context for a locally hosted agent and controller.
Public methodStatic memberCreateForLocalEnvironment(DataCollectionContext)Returns a data collection environment context for a locally hosted agent and controller by using the provided session data collection context.
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.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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

Reference

[CreatingaDiagnosticDataAdaptertoCollectCustomDataorAffectaTestMachine]

Other Resources

Show: