Export (0) Print
Expand All

DataCollectionSink Class

Diagnostic data adapters use a DataCollectionSink to store files and XML data for later attachment to bugs and test reports.

System.Object
  Microsoft.VisualStudio.TestTools.Execution.DataCollectionSink

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

public abstract class DataCollectionSink

The DataCollectionSink type exposes the following members.

  NameDescription
Protected methodDataCollectionSinkInitializes a new instance of the DataCollectionSink class.
Top

  NameDescription
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSendFileAsync(FileTransferInformation)Sends an intermediate file asynchronously to the DataCollectionSink by using the provided file transfer information object.
Public methodSendFileAsync(DataCollectionContext, String, Boolean)Sends a file asynchronously to the DataCollectionSink by using the parameters that are specified for this method.
Public methodSendFileAsync(DataCollectionContext, String, String, Boolean)Sends an intermediate file asynchronously to the DataCollectionSink by using the parameters that are specified for this method.
Public methodSendStreamAsync(StreamTransferInformation)Sends a stream to the DataCollectionSink by using the parameters that are specified for this method.
Public methodSendStreamAsync(DataCollectionContext, Stream, String, Boolean)Sends a stream to the DataCollectionSink by using the parameters that are specified for this method.
Public methodSendStreamAsync(DataCollectionContext, Stream, String, String, Boolean)Sends a stream to the DataCollectionSink by using the parameters that are specified for this method.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public eventSendFileCompletedOccurs when a file has been sent to the DataCollectionSink.
Public eventSendStreamCompletedOccurs when a stream has been sent to the DataCollectionSink.
Top

When your custom diagnostic data adapter is initialized, the testing framework provides a DataCollectionSink object for it to use.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft