When overridden in a derived class, writes the start of an attribute with the specified prefix, local name, and namespace URI.
Type Reason InvalidOperationException The XmlWriter.WriteState is not one of the following:WriteState.Attribute or WriteState.Element.
This method enables you to write a value using multiple Write methods.
For the asynchronous version of this method, see XmlWriter.WriteStartAttributeAsync(string, string, string).