Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Sends a file asynchronously to the DataCollectionSink by using the parameters that are specified for this method.
Namespace: Microsoft.VisualStudio.TestTools.Execution
Assembly: Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Syntax
'Declaration
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
)
Parameters
context
Type: Microsoft.VisualStudio.TestTools.Execution.DataCollectionContextAn IBaseRunContext that describes the context within which the test is running. Cannot be nulla null reference (Nothing in Visual Basic).
path
Type: StringThe local path where the file exists.
deleteFile
Type: Booleantrue to automatically delete the file after sending it; otherwise, false.
Exceptions
| Exception | Condition |
|---|---|
| FileNotFoundException | The path does not exist. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.