DataCollectionSink.SendFileAsync 方法 (DataCollectionContext, String, String, Boolean)

使用为此方法指定的参数将中间文件异步发送至 DataCollectionSink

命名空间:  Microsoft.VisualStudio.TestTools.Execution
程序集:  Microsoft.VisualStudio.QualityTools.ExecutionCommon(在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)

语法

声明
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
)

参数

  • deleteFile
    类型:System.Boolean
    true 表示在发送文件后自动将其删除;否则为 false。

.NET Framework 安全性

请参见

参考

DataCollectionSink 类

SendFileAsync 重载

Microsoft.VisualStudio.TestTools.Execution 命名空间

IBaseRunContext