Is it Possible to Dynamically Configure XML Serialization?-Collection of common programming errors

I have several classes that I serialize/deserialize, each with a number of properties, some of which I’d like dynamically use the “Xml.Serialization.XmlIgnore” attribute on. The idea being if I want to save specific property info, I manage it by setting/clearing a flag. Is that even possible?