TraceXml method

void TraceXml(
  1. TraceFlags traceType,
  2. MemoryStream stream
)
Logs the specified XML to the TraceListener if tracing is enabled. Kind of trace entry. The stream containing XML.

Implementation

void TraceXml(enumerations.TraceFlags traceType, MemoryStream stream) {
  if (this.IsTraceEnabledFor(traceType)) {
    String traceTypeStr = traceType.toString();
    String logMessage =
        EwsUtilities.FormatLogMessageWithXmlContent(traceTypeStr, stream);
    this.TraceListener.Trace(traceTypeStr, logMessage);
  }
}