BayesFilterLoadDatabase Method (String, String)
Loads Bayesian database from disk.

Namespace: MailBee.AntiSpam
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public void LoadDatabase(
	string spamFilename,
	string nonSpamFilename
)

Parameters

spamFilename
Type: SystemString
The full or relative path to the file containing spam samples.
nonSpamFilename
Type: SystemString
The full or relative path to the file containing non-spam samples.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionspamFilename or nonSpamFilename is an empty string or a null reference (Nothing in Visual Basic).
MailBeeIOExceptionAn I/O error occurred.
Remarks
If you do not already have a database of spam/non-spam samples, you should first train the filter and populate the database by calling TrainFilter(MailMessage, Boolean) method for a significant number of spam and non-spam messages. You can save the resulting database using SaveDatabase(String, String) method.
Examples
The example is available in TrainFilter(MailMessage, Boolean) topic.
See Also