Attach File Method
- 更新时间2022-07-11
- 阅读时长1分钟
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. |