Attach File Method
- Updated2022-07-11
- 1 minute(s) read
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);
...
}
| Parameter | Required? | Data Type | Description |
|---|---|---|---|
| sourceFile | Yes | String | Path to the source file to attach. |