Compartilhar via


Construtor DataCollectionEnvironmentContext (AgentContext, ControllerContext, DataCollectionContext)

Inicializa uma nova instância de DataCollectionEnvironmentContext classe usando o contexto do agente fornecida, contexto do controlador e dados de sessão coleção contexto.

Namespace:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (em Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

Sintaxe

'Declaração
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
)

Parâmetros

Comentários

Chamado pela estrutura de teste.

Segurança do .NET Framework

Consulte também

Referência

DataCollectionEnvironmentContext Classe

Sobrecargas DataCollectionEnvironmentContext

Namespace Microsoft.VisualStudio.TestTools.Execution

AgentContext

ControllerContext

DataCollectionContext