DeliveryStatusParser Constructor (String, Boolean)
Loads DSN XML templates database from a set of XML files and creates DeliveryStatusParser object.

Namespace: MailBee.BounceMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public DeliveryStatusParser(
	string databaseLocations,
	bool allowFailedDatabases
)

Parameters

databaseLocations
Type: SystemString
The semicolon-separated list of full or relative paths to the database files.
allowFailedDatabases
Type: SystemBoolean
If false, this method will throw MailBeeIOException when at least one database could not be loaded; otherwise, the exception will be thrown only if all databases failed to load. Has no effect if only one database file was specified in databaseLocations.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptiondatabaseLocations is a null reference (Nothing in Visual Basic) or an empty string.
MailBeeIOExceptionCould not load the database file(s).
Remarks

MailBee is shipped with a set of database files located in BounceDatabase folder of MailBee.NET Objects installation. "all.xml" file is the root file of this database and therefore should be specified as databaseLocations value. Thus, the typical databaseLocations path is somewhat like C:\Program Files\MailBee.NET Objects\BounceDatabase\all.xml.

It's also possible to create user-defined databases and use multiple databases. databaseLocations format is the same as Microsoft Windows environment PATH variable. (i.e. "Path1;Path2;...;PathN"). You can change the order of processing templates from different databases by changing the order in which databases are listed in databaseLocations value.

Note Note
If you're using the default bounce templates database in your application which will be redistributed, you should include all the contents of BounceDatabase folder with your application. Redistributing all.xml file is not enough as it contains references to other files and sub-folders in BounceDatabase folder.
Examples
The example is available in DeliveryStatusParser topic.
See Also