Condividi tramite


Metodo DataCollectionSink.SendFileAsync (DataCollectionContext, String, String, Boolean)

Invia un file temporaneo in modo asincrono a DataCollectionSink utilizzando i parametri specificati per questo metodo.

Spazio dei nomi:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

Sintassi

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

Parametri

  • deleteFile
    Tipo: System.Boolean
    true per automaticamente eliminare il file dopo aver inviatolo; in caso contrario, false.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

DataCollectionSink Classe

Overload SendFileAsync

Spazio dei nomi Microsoft.VisualStudio.TestTools.Execution

IBaseRunContext