Sdílet prostřednictvím


DataCollectionSink.SendFileAsync – metoda (DataCollectionContext, String, String, Boolean)

Odešle průběžný soubor asynchronně do DataCollectionSink pomocí parametrů, které jsou určeny pro tuto metodu.

Obor názvů:  Microsoft.VisualStudio.TestTools.Execution
Sestavení:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (v Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

Syntaxe

'Deklarace
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
)

Parametry

  • path
    Typ: String

    Místní cesta, na které se nachází soubor.

  • description
    Typ: String

    Stručný popis souboru.

  • deleteFile
    Typ: Boolean

    true pro automatické odstranění souboru po odeslání; jinak false

Zabezpečení rozhraní .NET Framework

Viz také

Referenční dokumentace

DataCollectionSink Třída

SendFileAsync – přetížení

Microsoft.VisualStudio.TestTools.Execution – obor názvů

IBaseRunContext