DataCollectionSink.SendFileAsync Yöntem (DataCollectionContext, String, String, Boolean)
Bir ara dosya çok zaman uyumsuz olarak gönderir DataCollectionSink bu yöntemi için belirtilen parametreler kullanarak.
Ad alanı: Microsoft.VisualStudio.TestTools.Execution
Derleme: Microsoft.VisualStudio.QualityTools.ExecutionCommon (Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll içinde)
Sözdizimi
'Bildirim
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
)
Parametreler
- context
Tür: Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext
Bir IBaseRunContext test içinde çalıştığı bağlamı açıklar.Olamaz nullnull başvuru (Visual Basic'te Nothing).
- path
Tür: System.String
Dosyanın bulunduğu yerel yolu.
- description
Tür: System.String
Dosya kısa bir açıklaması.
- deleteFile
Tür: System.Boolean
true dosyayı gönderdikten sonra otomatik olarak silmek için; Aksi halde, false.
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen güvenilen kod kitaplıklarını kullanma.