次の方法で共有


DataCollectionSink.SendFileAsync メソッド (DataCollectionContext, String, String, Boolean)

このメソッドに指定されたパラメーターを使用して、中間ファイルを DataCollectionSink に非同期で送信します。

名前空間:  Microsoft.VisualStudio.TestTools.Execution
アセンブリ:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 内)

構文

'宣言
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
)

パラメーター

  • path
    型: System.String
    ファイルが存在するローカル パス。
  • description
    型: System.String
    ファイルの簡単な説明。
  • deleteFile
    型: System.Boolean
    送信後にファイルを自動的に削除する場合は true。それ以外の場合は false。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

DataCollectionSink クラス

SendFileAsync オーバーロード

Microsoft.VisualStudio.TestTools.Execution 名前空間

IBaseRunContext