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

使用提供的代理上下文、控制器上下文、会话数据集合上下文和测试用例管理器上下文初始化 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, _
    tcmContext As TcmContext _
)
public DataCollectionEnvironmentContext(
    AgentContext agentContext,
    ControllerContext controllerContext,
    DataCollectionContext sessionDataCollectionContext,
    TcmContext tcmContext
)
public:
DataCollectionEnvironmentContext(
    AgentContext^ agentContext, 
    ControllerContext^ controllerContext, 
    DataCollectionContext^ sessionDataCollectionContext, 
    TcmContext^ tcmContext
)
new : 
        agentContext:AgentContext * 
        controllerContext:ControllerContext * 
        sessionDataCollectionContext:DataCollectionContext * 
        tcmContext:TcmContext -> DataCollectionEnvironmentContext
public function DataCollectionEnvironmentContext(
    agentContext : AgentContext, 
    controllerContext : ControllerContext, 
    sessionDataCollectionContext : DataCollectionContext, 
    tcmContext : TcmContext
)

参数

.NET Framework 安全性

请参见

参考

DataCollectionEnvironmentContext 类

DataCollectionEnvironmentContext 重载

Microsoft.VisualStudio.TestTools.Execution 命名空间

AgentContext

ControllerContext

DataCollectionContext

TcmContext