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
context
Typ: Microsoft.VisualStudio.TestTools.Execution.DataCollectionContextParametr IBaseRunContext popisující kontext, ve kterém je spuštěn test.Nemůže být nullodkaz null (Nothing v jazyce Visual Basic).
path
Typ: StringMístní cesta, na které se nachází soubor.
description
Typ: StringStručný popis souboru.
deleteFile
Typ: Booleantrue pro automatické odstranění souboru po odeslání; jinak false
Zabezpečení rozhraní .NET Framework
- Plná důvěra přímému volajícímu. Částečně zabezpečený kód nemůže tento člen použít. Další informace naleznete v tématu Používání knihoven z částečně důvěryhodného kódu.