BayesFilterSaveDatabaseAsync Method (Stream, Stream)
async/await version of SaveDatabase(Stream, Stream).

Namespace: MailBee.AntiSpam
Assembly: MailBee.NET.45 (in MailBee.NET.45.dll) Version: 10.0.45.502
Syntax
public Task SaveDatabaseAsync(
	Stream spamStream,
	Stream nonSpamStream
)

Parameters

spamStream
Type: System.IOStream
An output stream containing spam samples.
nonSpamStream
Type: System.IOStream
An output 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