BayesFilterLoadDatabase Method (Stream, Stream)
Loads Bayesian database from a stream.

Namespace: MailBee.AntiSpam
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public void LoadDatabase(
	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.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionspamStream or nonSpamStream is a null reference (Nothing in Visual Basic).
MailBeeIOExceptionAn I/O error occurred.
Remarks
The data format in the stream is the same that is used for files (and the method behaves identically to LoadDatabase(String, String) with the only difference that streams are used instead of files).
See Also