expression.StartTrace( _ ByVal fileName As String, _ ByVal fileExistsOption As TraceFileExistsOption, _ ByVal formatOption As TraceFormatOption _ ) As ReturnCode
where expression is a variable that represents a Terminal Object
Parameters
- fileName
- Specifies the file to which data is written.
- fileExistsOption
- A TraceFileExistsOption that specifies what to do if the file already exists. The default is OpenError.
- formatOption
- A TraceFormatOption that specifies what kind of trace to perform. The default is TraceDefault.
Return Value
One of the following ReturnCode enumeration values.
| Member | Description |
|---|---|
| Cancelled | Cancelled. |
| Error | Error. |
| PermissionRequired | Permission is required. |
| Success | Success. |
| Timeout | Timeout condition. |
| Truncated | The text is truncated. |