DataCollectionEnvironmentContext Constructor (AgentContext, ControllerContext, DataCollectionContext)
Initializes a new instance of the DataCollectionEnvironmentContext class by using the provided agent context, controller context, and session data collection context.
Namespace: Microsoft.VisualStudio.TestTools.Execution
Assembly: Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Syntax
'Declaration
Public Sub New ( _
agentContext As AgentContext, _
controllerContext As ControllerContext, _
sessionDataCollectionContext As DataCollectionContext _
)
public DataCollectionEnvironmentContext(
AgentContext agentContext,
ControllerContext controllerContext,
DataCollectionContext sessionDataCollectionContext
)
public:
DataCollectionEnvironmentContext(
AgentContext^ agentContext,
ControllerContext^ controllerContext,
DataCollectionContext^ sessionDataCollectionContext
)
new :
agentContext:AgentContext *
controllerContext:ControllerContext *
sessionDataCollectionContext:DataCollectionContext -> DataCollectionEnvironmentContext
public function DataCollectionEnvironmentContext(
agentContext : AgentContext,
controllerContext : ControllerContext,
sessionDataCollectionContext : DataCollectionContext
)
Parameters
agentContext
Type: Microsoft.VisualStudio.TestTools.Execution.AgentContextThe AgentContext for the agent.
controllerContext
Type: Microsoft.VisualStudio.TestTools.Execution.ControllerContextThe ControllerContext for the controller.
sessionDataCollectionContext
Type: Microsoft.VisualStudio.TestTools.Execution.DataCollectionContextThe DataCollectionContext for the diagnostic data adapter.
Remarks
Called by the test framework.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DataCollectionEnvironmentContext Class
DataCollectionEnvironmentContext Overload