BayesFilterLoadDatabaseAsync Method (String, String)
async/await version of LoadDatabase(String, String).

Namespace: MailBee.AntiSpam
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public Task LoadDatabaseAsync(
	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.

Return Value

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