DataCollectionSink.SendStreamAsync Method

Definition

Overloads

SendStreamAsync(StreamTransferInformation)

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

SendStreamAsync(DataCollectionContext, Stream, String, Boolean)

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

SendStreamAsync(DataCollectionContext, Stream, String, String, Boolean)

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

SendStreamAsync(StreamTransferInformation)

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

public:
 abstract void SendStreamAsync(Microsoft::VisualStudio::TestTools::Execution::StreamTransferInformation ^ streamTransferInformation);
public abstract void SendStreamAsync (Microsoft.VisualStudio.TestTools.Execution.StreamTransferInformation streamTransferInformation);
abstract member SendStreamAsync : Microsoft.VisualStudio.TestTools.Execution.StreamTransferInformation -> unit
Public MustOverride Sub SendStreamAsync (streamTransferInformation As StreamTransferInformation)

Parameters

streamTransferInformation
StreamTransferInformation

A StreamTransferInformation object.

Applies to

SendStreamAsync(DataCollectionContext, Stream, String, Boolean)

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

public:
 void SendStreamAsync(Microsoft::VisualStudio::TestTools::Execution::DataCollectionContext ^ context, System::IO::Stream ^ stream, System::String ^ fileName, bool closeStream);
public void SendStreamAsync (Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext context, System.IO.Stream stream, string fileName, bool closeStream);
member this.SendStreamAsync : Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext * System.IO.Stream * string * bool -> unit
Public Sub SendStreamAsync (context As DataCollectionContext, stream As Stream, fileName As String, closeStream As Boolean)

Parameters

context
DataCollectionContext

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

stream
Stream

The Stream to send.

fileName
String

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

closeStream
Boolean

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

Exceptions

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

The stream cannot be read.

Applies to

SendStreamAsync(DataCollectionContext, Stream, String, String, Boolean)

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

public:
 void SendStreamAsync(Microsoft::VisualStudio::TestTools::Execution::DataCollectionContext ^ context, System::IO::Stream ^ stream, System::String ^ fileName, System::String ^ description, bool closeStream);
public void SendStreamAsync (Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext context, System.IO.Stream stream, string fileName, string description, bool closeStream);
member this.SendStreamAsync : Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext * System.IO.Stream * string * string * bool -> unit
Public Sub SendStreamAsync (context As DataCollectionContext, stream As Stream, fileName As String, description As String, closeStream As Boolean)

Parameters

context
DataCollectionContext

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

stream
Stream

The System.IO.Stream to send.

fileName
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
String

A short description for the file.

closeStream
Boolean

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

Exceptions

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

The stream cannot be read.

Applies to