Bagikan melalui


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

  • 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

See Also

Reference

DataCollectionSink Class

SendFileAsync Overload

Microsoft.VisualStudio.TestTools.Execution Namespace

IBaseRunContext