DataCollectionSink.SendFileAsync Method (DataCollectionContext, String, String, Boolean)
Sends an intermediate file asynchronously 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)
Syntax
'Declaration
Public Sub SendFileAsync ( _
context As DataCollectionContext, _
path As String, _
description As String, _
deleteFile As Boolean _
)
public void SendFileAsync(
DataCollectionContext context,
string path,
string description,
bool deleteFile
)
public:
void SendFileAsync(
DataCollectionContext^ context,
String^ path,
String^ description,
bool deleteFile
)
member SendFileAsync :
context:DataCollectionContext *
path:string *
description:string *
deleteFile:bool -> unit
public function SendFileAsync(
context : DataCollectionContext,
path : String,
description : String,
deleteFile : boolean
)
Parameters
- context
Type: Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext
An IBaseRunContext that describes the context within which the test is running. Cannot be nulla null reference (Nothing in Visual Basic).
- path
Type: System.String
The local path where the file exists.
- description
Type: System.String
A short description of the file.
- deleteFile
Type: System.Boolean
true to automatically delete the file after sending it; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.