14 references to XmlEncode
System.ServiceModel.Internals (14)
System\Runtime\Diagnostics\DiagnosticTraceBase.cs (6)
354
xml.WriteElementString(DiagnosticStrings.ExceptionTypeTag,
XmlEncode
(exception.GetType().AssemblyQualifiedName));
355
xml.WriteElementString(DiagnosticStrings.MessageTag,
XmlEncode
(exception.Message));
356
xml.WriteElementString(DiagnosticStrings.StackTraceTag,
XmlEncode
(StackTraceString(exception)));
357
xml.WriteElementString(DiagnosticStrings.ExceptionStringTag,
XmlEncode
(exception.ToString()));
370
xml.WriteElementString(DiagnosticStrings.KeyTag,
XmlEncode
(dataItem.ToString()));
371
xml.WriteElementString(DiagnosticStrings.ValueTag,
XmlEncode
(exception.Data[dataItem].ToString()));
System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (6)
759
new Tuple<string, string> (DiagnosticStrings.ExceptionTypeTag,
XmlEncode
(exception.GetType().AssemblyQualifiedName)),
760
new Tuple<string, string> (DiagnosticStrings.MessageTag,
XmlEncode
(exception.Message)),
761
new Tuple<string, string> (DiagnosticStrings.StackTraceTag,
XmlEncode
(StackTraceString(exception))),
762
new Tuple<string, string> (DiagnosticStrings.ExceptionStringTag,
XmlEncode
(exception.ToString())),
855
xml.WriteElementString(DiagnosticStrings.KeyTag,
XmlEncode
(dataItem.ToString()));
862
xml.WriteElementString(DiagnosticStrings.ValueTag,
XmlEncode
(exception.Data[dataItem].ToString()));
System\Runtime\Diagnostics\EventLogger.cs (1)
180
eventValues.Add("Value" + i.ToString(CultureInfo.InvariantCulture), values[i] == null ? string.Empty : DiagnosticTraceBase.
XmlEncode
(values[i]));
System\Runtime\Diagnostics\TraceRecord.cs (1)
28
return DiagnosticTraceBase.
XmlEncode
(text);