Compacts the database by removing non-significant data and saves the database to stream.
The data format in the stream is the same that is used for files (and the method behaves identically to SaveDatabase with the only difference that streams are used instead of files).
| Exception Type | Condition |
|---|---|
| MailBeeInvalidArgumentException | spamStream or nonSpamStream is a null reference (Nothing in Visual Basic). |
| MailBeeIOException | An I/O error occurred. |
BayesFilter Class | MailBee.AntiSpam Namespace | BayesFilter.SaveDatabase Overload List