/// <summary> /// This writes the current state or attributes of this object, /// in the <c>XML</c> format, to the media or storage accessible by the given writer. /// </summary> /// <param name="writer"> /// The <c>XML</c> writer with which the <c>XML</c> format of this object's state /// is written. /// </param> /// <exception cref="ArgumentNullException"> /// If the <paramref name="reader"/> is <see langword="null"/>. /// </exception> public override void WriteXml(XmlWriter writer) { BuildExceptions.NotNull(writer, "writer"); writer.WriteStartElement(TagName); // start - TagName writer.WriteAttributeString("name", ConfigurationName); // Write the general properties writer.WriteStartElement("propertyGroup"); // start - propertyGroup; writer.WriteAttributeString("name", "General"); writer.WritePropertyElement("Enabled", this.Enabled); writer.WritePropertyElement("ContinueOnError", this.ContinueOnError); writer.WritePropertyElement("ContentsAfter", _contentsAfter); writer.WritePropertyElement("LayoutType", _layoutType.ToString()); writer.WriteEndElement(); // end - propertyGroup writer.WriteEndElement(); // end - TagName }