DataCollectionSink.SendFileAsync Method

Definition

Overloads

SendFileAsync(FileTransferInformation)

Sends an intermediate file asynchronously to the DataCollectionSink by using the provided file transfer information object.

SendFileAsync(DataCollectionContext, String, Boolean)

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

SendFileAsync(DataCollectionContext, String, String, Boolean)

Sends an intermediate file asynchronously to the DataCollectionSink by using the parameters that are specified for this method.

SendFileAsync(FileTransferInformation)

Sends an intermediate file asynchronously to the DataCollectionSink by using the provided file transfer information object.

public:
 abstract void SendFileAsync(Microsoft::VisualStudio::TestTools::Execution::FileTransferInformation ^ fileTransferInformation);
public abstract void SendFileAsync (Microsoft.VisualStudio.TestTools.Execution.FileTransferInformation fileTransferInformation);
abstract member SendFileAsync : Microsoft.VisualStudio.TestTools.Execution.FileTransferInformation -> unit
Public MustOverride Sub SendFileAsync (fileTransferInformation As FileTransferInformation)

Parameters

fileTransferInformation
FileTransferInformation

A FileTransferInformation object.

Applies to

SendFileAsync(DataCollectionContext, String, Boolean)

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

public:
 void SendFileAsync(Microsoft::VisualStudio::TestTools::Execution::DataCollectionContext ^ context, System::String ^ path, bool deleteFile);
public void SendFileAsync (Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext context, string path, bool deleteFile);
member this.SendFileAsync : Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext * string * bool -> unit
Public Sub SendFileAsync (context As DataCollectionContext, path As String, deleteFile As Boolean)

Parameters

context
DataCollectionContext

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

path
String

The local path where the file exists.

deleteFile
Boolean

true to automatically delete the file after sending it; otherwise, false.

Exceptions

The path does not exist.

Applies to

SendFileAsync(DataCollectionContext, String, String, Boolean)

Sends an intermediate file asynchronously to the DataCollectionSink by using the parameters that are specified for this method.

public:
 void SendFileAsync(Microsoft::VisualStudio::TestTools::Execution::DataCollectionContext ^ context, System::String ^ path, System::String ^ description, bool deleteFile);
public void SendFileAsync (Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext context, string path, string description, bool deleteFile);
member this.SendFileAsync : Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext * string * string * bool -> unit
Public Sub SendFileAsync (context As DataCollectionContext, path As String, description As String, deleteFile As Boolean)

Parameters

context
DataCollectionContext

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

path
String

The local path where the file exists.

description
String

A short description of the file.

deleteFile
Boolean

true to automatically delete the file after sending it; otherwise, false.

Applies to