Método DataCollectionSink.SendFileAsync (DataCollectionContext, String, Boolean)

Envia um arquivo de forma assíncrona para o DataCollectionSink usando os parâmetros que são especificados para este método.

Namespace:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (em Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

Sintaxe

'Declaração
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
)

Parâmetros

  • path
    Tipo: System.String
    O caminho local onde o arquivo existe.
  • deleteFile
    Tipo: System.Boolean
    true Para excluir automaticamente o arquivo após enviá-la; Caso contrário, false.

Exceções

Exceção Condição
[FileNotFoundException]

O path não existe.

Segurança do .NET Framework

Consulte também

Referência

DataCollectionSink Classe

Sobrecargas SendFileAsync

Namespace Microsoft.VisualStudio.TestTools.Execution

IBaseRunContext

DataCollectionContext

RequestId