## MailQuery.WriteXml method

Converts an object into its XML representation.

```csharp
public virtual void WriteXml(XmlWriter writer)
```

| Parameter | Type | Description |
| --- | --- | --- |
| writer | XmlWriter | The XmlWriter stream to which the object is serialized. |

### See Also

* class [MailQuery](../)
* namespace [Aspose.Email.Tools.Search](../../mailquery/)
* assembly [Aspose.Email](../../../)


