Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataCollectionSink::SendStreamAsync Method (DataCollectionContext^, Stream^, String^, Boolean)

 

Sends a stream to the DataCollectionSink by using the parameters that are specified for this method.

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

public:
void SendStreamAsync(
	DataCollectionContext^ context,
	Stream^ stream,
	String^ fileName,
	bool closeStream
)

Parameters

context
Type: Microsoft.VisualStudio.TestTools.Execution::DataCollectionContext^

An IBaseRunContext that describes the context within which the test is running. Cannot be null.

stream
Type: System.IO::Stream^

The Stream to send.

fileName
Type: System::String^

The file name to use for the data on the client.

closeStream
Type: System::Boolean

true to automatically close the stream when sending is completed; otherwise, false.

Exception Condition
ArgumentException

The fileName is null, is empty, is a reserved file name, or contains invalid characters.

InvalidOperationException

The stream cannot be read.

Return to top
Show: