Gets and sets the current network function tracing flags.
Syntax
object.TraceFlags [= value]
The TraceFlags property syntax has the following
parts:
| Part |
Description |
| object
|
An object expression that
evaluates to an InternetMail object. |
| value
|
A long integer which specifies one
or more trace flags. |
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 |
mailTraceInfo |
All function calls are written to
the trace file. This is the default value. |
| 1 |
mailTraceError |
Only those function calls which
fail are recorded in the trace file. |
| 2 |
mailTraceWarning |
Only those function calls which
fail, or return values which indicate a warning, are recorded in
the trace file. |
| 4 |
mailTraceHexDump |
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
|