Gets and sets the current network function tracing flags.
Syntax
object.TraceFlags [= traceflags]
The object is an expression that evaluates to a FileTransfer
object. The property returns a long integer value.
Remarks
The TraceFlags property is used to specify the type of
information written to the trace file when network function tracing
is enabled. The following values may be used:
| Value |
Constant |
Description |
| 0 |
fileTraceInfo |
All function calls are written to
the trace file. This is the default value. |
| 1 |
fileTraceError |
Only those function calls which
fail are recorded in the trace file. |
| 2 |
fileTraceWarning |
Only those function calls which
fail, or return values which indicate a warning, are recorded in
the trace file. |
| 4 |
fileTraceHexDump |
All function calls are written to
the trace file, plus all the data that is sent or received is
logged, in both ASCII and hexadecimal format. |
Since network function tracing is enabled per-process, the trace
flags are shared by all instances of the object being used.
Warnings are generated when a non-fatal error is returned by a
network function. For example, if data is being sent to the server
and the error 10035 is returned, a warning is generated since the
application simply needs to attempt to write the data at a later
time.
Data Type
Integer
See Also
Trace Property, TraceFile Property
|