Método DataCollector.Initialize

Chamado por estrutura de testes para inicializar os objetos internos e dados para um adaptador de dados de diagnóstico personalizado.

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

Sintaxe

'Declaração
Public MustOverride Sub Initialize ( _
    configurationElement As XmlElement, _
    events As DataCollectionEvents, _
    dataSink As DataCollectionSink, _
    logger As DataCollectionLogger, _
    environmentContext As DataCollectionEnvironmentContext _
)
public abstract void Initialize(
    XmlElement configurationElement,
    DataCollectionEvents events,
    DataCollectionSink dataSink,
    DataCollectionLogger logger,
    DataCollectionEnvironmentContext environmentContext
)
public:
virtual void Initialize(
    XmlElement^ configurationElement, 
    DataCollectionEvents^ events, 
    DataCollectionSink^ dataSink, 
    DataCollectionLogger^ logger, 
    DataCollectionEnvironmentContext^ environmentContext
) abstract
abstract Initialize : 
        configurationElement:XmlElement * 
        events:DataCollectionEvents * 
        dataSink:DataCollectionSink * 
        logger:DataCollectionLogger * 
        environmentContext:DataCollectionEnvironmentContext -> unit 
public abstract function Initialize(
    configurationElement : XmlElement, 
    events : DataCollectionEvents, 
    dataSink : DataCollectionSink, 
    logger : DataCollectionLogger, 
    environmentContext : DataCollectionEnvironmentContext
)

Parâmetros

Comentários

Quando você cria um adaptador de dados de diagnóstico personalizado, você deve implementar isso Initialize método, onde você registrará os eventos que você deseja usar.

Segurança do .NET Framework

Consulte também

Referência

DataCollector Classe

Namespace Microsoft.VisualStudio.TestTools.Execution

DataCollectionEvents

DataCollectionSink

DataCollectionLogger

DataCollectionEnvironmentContext