WriteAttributes()

XmlWriter::WriteAttributes(SharedPtr<XmlReader>, bool) method

When overridden in a derived class, writes out all the attributes found at the current position in the XmlReader.

virtual void System::Xml::XmlWriter::WriteAttributes(SharedPtr<XmlReader> reader, bool defattr)

Arguments

ParameterTypeDescription
readerSharedPtr<XmlReader>The XmlReader from which to copy the attributes.
defattrbooltrue to copy the default attributes from the XmlReader; otherwise, false.

Exceptions

ExceptionDescription
ArgumentNullExceptionreader is nullptr.
XmlExceptionThe reader is not positioned on an element, attribute or XmlDeclaration node.

See Also