共用方式為


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
)

參數

  • path
    類型:String

    檔案的本機路徑。

  • description
    類型:String

    檔案的簡短描述。

  • deleteFile
    類型:Boolean

    true 表示在傳送檔案之後自動刪除檔案,否則為 false。

.NET Framework 安全性

請參閱

參考

DataCollectionSink 類別

SendFileAsync 多載

Microsoft.VisualStudio.TestTools.Execution 命名空間

IBaseRunContext