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 | |
---|---|---|
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. | |
IsManualTest | ||
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.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (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
Other Resources
Creating a Diagnostic Data Adapter to Collect Custom Data or Affect a Test Machine