[]
Writes XML definition of the filter.
public virtual void WriteXmlDefinition(XmlWriter xw)
Type | Name | Description |
---|---|---|
XmlWriter | xw | The instance of the XmlWriter which used to write xml filter definition. |
The code below writes one integer filter field as xml value:
// write filter field as value
xw.WriteString(_field.ToString());
The code below writes two integer filter fields as xml nodes with attributes:
// write _minimum field as xml node with attribute
xw.WriteStartElement("Minimum");
xw.WriteAttributeString("Value", _minimum.ToString());
xw.WriteEndElement();
// write _maximum field as xml node with attribute
xw.WriteStartElement("Maximum");
xw.WriteAttributeString("Value", _maximum.ToString());
xw.WriteEndElement();