Attach File Method

AttachFile attaches an auxiliary file to the data log folder and adds a relative path for the attachment file to a column within the data log during the corresponding LogMeasurement call. This method also copies the specified file from the source location to folder selected during test run initialization.

Note This method generates an error if you enter an invalid source file path.
using (AttachableMeasurement log = run.CreateAttachableMeasurement(singleMeasurementDetails))
{
    log.AttachFile(sourceFile);
    ...
}
Table 34. .NET Attach File Method Parameter
Parameter Required? Data Type Description
sourceFile Yes String Path to the source file to attach.