DataCollectionEnvironmentContext Class
Encapsulates the environment where a diagnostic data adapter is hosted.
Inheritance Hierarchy
System.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 | |
---|---|---|
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. | |
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 | |
---|---|---|
AgentContext | Gets the agent context. The set accessor is for internal use only. | |
ControllerContext | Gets the test controller context. The set accessor is for internal use only. | |
SessionDataCollectionContext | Gets the session context for a diagnostic data adapter. The set accessor is for internal use only. | |
TcmContext | Gets the context for the test case manager. |
Top
Methods
Name | Description | |
---|---|---|
CreateForLocalEnvironment() | Returns a data collection environment context for a locally hosted agent and controller. | |
CreateForLocalEnvironment(DataCollectionContext) | Returns a data collection environment context for a locally hosted agent and controller by using the provided session data collection context. | |
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 a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
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
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
[CreatingaDiagnosticDataAdaptertoCollectCustomDataorAffectaTestMachine]
Other Resources
Creating a Diagnostic Data Adapter to Collect Custom Data or Affect a Test Machine