BayesFilterSaveDatabaseAsync Method (Stream, Stream, Int32, Boolean) |
Namespace: MailBee.AntiSpamAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Task SaveDatabaseAsync(
Stream spamStream,
Stream nonSpamStream,
int threshold,
bool saveAlways
)
Public Function SaveDatabaseAsync (
spamStream As Stream,
nonSpamStream As Stream,
threshold As Integer,
saveAlways As Boolean
) As Task
Parameters
- spamStream
- Type: System.IOStream
An output stream containing spam samples. - nonSpamStream
- Type: System.IOStream
An output stream containing non-spam samples. - threshold
- Type: SystemInt32
Specifies how many times (at least) the word should
appear in the database to keep it from removal during compacting the
database. If the word appears less times then specified, it will be
considered non-significant and thus will be removed. If zero, no words
will be removed from the database. - saveAlways
- Type: SystemBoolean
If true, the method will save the database
even if has not been modified since it had been loaded to memory;
if false, the method will save it only if it has been modified.
Return Value
Type:
TaskA task that represents the asynchronous operation.
Exceptions See Also