BayesFilter.SaveDatabaseAsync Method (String, String, Int32, Boolean)
BayesFilterSaveDatabaseAsync Method (String, String, Int32, Boolean)

Namespace: MailBee.AntiSpam
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
public Task SaveDatabaseAsync(
	string spamFilename,
	string nonSpamFilename,
	int threshold,
	bool saveAlways


Type: SystemString
The full or relative path to the file containing spam samples.
Type: SystemString
The full or relative path to the file containing non-spam samples.
Type: SystemInt32
Specifies how many times (at least) the word should appear in the database to keep it from removal during compacting the database. If the word appears less times then specified, it will be considered non-significant and thus will be removed. If zero, no words will be removed from the database.
Type: SystemBoolean
If true, the method will save the database even if has not been modified since it had been loaded to memory; if false, the method will save it only if it has been modified.

Return Value

Type: Task
A task that represents the asynchronous operation.
MailBeeInvalidArgumentExceptionspamFilename or nonSpamFilename is an empty string or a null reference (Nothing in Visual Basic).
MailBeeIOExceptionAn I/O error occurred.
See Also