WriteAttributeString method
void
WriteAttributeString(
- String localName,
- String? stringValue
)
Writes the attribute value.
The local name of the attribute.
The String value.
Implementation
void WriteAttributeString(String localName, String? stringValue) {
try {
_xmlWriter!.WriteAttributeStringJust(localName, stringValue);
} on ArgumentException catch (ex, stacktrace) {
// XmlTextWriter will throw ArgumentException if String includes invalid characters.
throw ServiceXmlSerializationException(
"InvalidAttributeValue($stringValue, $localName)",
ex,
stacktrace,
);
}
}