WriteValue method

void WriteValue(
  1. String? value,
  2. String? name
)
Writes String value. The value. Element name (used for error handling)

Implementation

void WriteValue(String? value, String? name) {
  try {
    this._xmlWriter!.WriteValue(value);
  } on ArgumentException catch (ex, stacktrace) {
    // XmlTextWriter will throw ArgumentException if String includes invalid characters.
    throw new ServiceXmlSerializationException(
        "InvalidElementStringValue($value, $name)", ex, stacktrace);
  }
}