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::SendFileAsync Method (DataCollectionContext^, String^, Boolean)
Sends a file asynchronously to the DataCollectionSink by using the parameters that are specified for this method.
Assembly: Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
public: void SendFileAsync( DataCollectionContext^ context, String^ path, bool deleteFile )
Parameters
- context
-
Type:
Microsoft.VisualStudio.TestTools.Execution::DataCollectionContext^
An IBaseRunContext that describes the context within which the test is running. Cannot be null.
- path
-
Type:
System::String^
The local path where the file exists.
- deleteFile
-
Type:
System::Boolean
true to automatically delete the file after sending it; otherwise, false.
| Exception | Condition |
|---|---|
| FileNotFoundException | The path does not exist. |
Show: