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^, 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,
	String^ description,
	bool closeStream
)

Parameters

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

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

stream
Type: System.IO::Stream^

The System.IO.Stream to send.

fileName
Type: System::String^

The file name to use for the data on the client. Must not be null or empty and cannot contain illegal characters. Do not include a complete path.

description
Type: System::String^

A short description for the file.

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: