DataCollectionSink.SendFileAsync 方法 (DataCollectionContext, 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, _
    deleteFile As Boolean _
)
public void SendFileAsync(
    DataCollectionContext context,
    string path,
    bool deleteFile
)
public:
void SendFileAsync(
    DataCollectionContext^ context, 
    String^ path, 
    bool deleteFile
)
member SendFileAsync : 
        context:DataCollectionContext * 
        path:string * 
        deleteFile:bool -> unit 
public function SendFileAsync(
    context : DataCollectionContext, 
    path : String, 
    deleteFile : boolean
)

参数

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

异常

异常 条件
[FileNotFoundException]

path 不存在。

.NET Framework 安全性

请参见

参考

DataCollectionSink 类

SendFileAsync 重载

Microsoft.VisualStudio.TestTools.Execution 命名空间

IBaseRunContext

DataCollectionContext

RequestId