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

Namespace: MailBee.AntiSpam
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public Task LoadDatabaseAsync(
	Stream spamStream,
	Stream nonSpamStream
)

Parameters

spamStream
Type: System.IOStream
An input stream containing spam samples.
nonSpamStream
Type: System.IOStream
An input stream containing non-spam samples.

Return Value

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