Share via


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

Remarks

Called by the test framework.

.NET Framework Security

See Also

Reference

DataCollectionEnvironmentContext Class

DataCollectionEnvironmentContext Overload

Microsoft.VisualStudio.TestTools.Execution Namespace

AgentContext

ControllerContext

DataCollectionContext