DataCollectionEnvironmentContext 构造函数 (AgentContext, ControllerContext, DataCollectionContext)

使用提供的代理上下文、控制器上下文和会话数据集合上下文初始化 DataCollectionEnvironmentContext 类的新实例。

命名空间:  Microsoft.VisualStudio.TestTools.Execution
程序集:  Microsoft.VisualStudio.QualityTools.ExecutionCommon(在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)

语法

声明
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
)

参数

备注

由测试框架调用。

.NET Framework 安全性

请参见

参考

DataCollectionEnvironmentContext 类

DataCollectionEnvironmentContext 重载

Microsoft.VisualStudio.TestTools.Execution 命名空间

AgentContext

ControllerContext

DataCollectionContext